In this exercise, you'll learn how to borrow DAI through a DSProxy using DssProxyActions.
The starter code for this exercise is provided in foundry/src/exercises/ProxyBorrow.sol
Solution is in foundry/src/solutions/ProxyBorrow.sol
Hint: notes/code/DssProxyActions.sol
function borrow(uint256 amt) external auth {
// Write your code here
}- Execute
IDssProxyActions.drawthrough the proxy to generate DAI. - Transfer the borrowed DAI to the caller.
forge test --fork-url $FORK_URL --match-path test/ProxyBorrow.t.sol -vvv