In this exercise, you'll learn how to unlock and withdraw collateral through a DSProxy using DssProxyActions.
The starter code for this exercise is provided in foundry/src/exercises/ProxyUnlockCollateral.sol
Solution is in foundry/src/solutions/ProxyUnlockCollateral.sol
Hint: notes/code/DssProxyActions.sol
function unlock(uint256 amt) external auth {
// Write your code
}- Convert the amount to 18 decimal (
wad) precision. - Execute
IDssProxyActions.freeGemthrough the proxy. - Transfer the gem token back to the caller.
forge test --fork-url $FORK_URL --match-path test/ProxyUnlockCollateral.t.sol -vvv