DeFi Saver
Search…
Proxy Auth
This contract receives the user's DSProxy permission to perform actions on their behalf.
Each user in the system has their positions managed by a DSProxy, permitting other contracts to perform actions on their behalf. In DeFi Saver the ProxyAuth contract receives that permission.
Due to having permission for users' proxies, ProxyAuth is an immutable contract.
The ProxyAuth has only one function callExecute which is only callable by the StrategyExecutor contract. The function calls the users DSProxy and performs the configured actions. This allows for the rest of the system to change while keeping the proxy permission in a fixed contract.
Below is the interface of the contract:
1
contract ProxyAuth {
2
function callExecute(
3
address _proxyAddr,
4
address _contractAddr,
5
bytes memory _callData
6
) public payable onlyExecutor;
7
}
Copied!
Last modified 1d ago
Copy link