Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 943 Bytes

File metadata and controls

28 lines (18 loc) · 943 Bytes

Proxy Set Up Exercise

In this exercise, you'll learn how to set up a DSProxy and open a CDP using the DssProxyActions contract.

The starter code for this exercise is provided in foundry/src/exercises/ProxySetUp.sol

Solution is in foundry/src/solutions/ProxySetUp.sol

Hint: notes/code/DssProxyActions.sol

Task 1 - Set up proxy and open CDP

constructor(address _gemJoin, address _daiJoin) {
    // ... existing code ...

    // Write your code here
}
  • Build a DSProxy using factory.build.
  • Open a CDP by executing IDssProxyActions.open through the proxy.

Test

forge test --fork-url $FORK_URL --match-path test/ProxySetUp.t.sol -vvv