mirror of
https://github.com/Instadapp/yield-contract.git
synced 2024-07-29 21:47:29 +00:00
removed storage variables
This commit is contained in:
parent
d45ed96efb
commit
66565bb1d4
|
@ -10,24 +10,17 @@ interface DSAInterface {
|
|||
|
||||
contract LogicOne {
|
||||
|
||||
address poolToken;
|
||||
DSAInterface dsa;
|
||||
|
||||
function maxComp(address[] calldata _targets, bytes[] calldata _data) public {
|
||||
function maxComp(address _dsa, address[] calldata _targets, bytes[] calldata _data) public {
|
||||
// check if DSA is authorised for interaction
|
||||
address compoundConnector = address(0);
|
||||
address instaPoolConnector = address(0);
|
||||
for (uint i = 0; i < _targets.length; i++) {
|
||||
require(_targets[i] == compoundConnector || _targets[i] == instaPoolConnector, "connector-not-authorised");
|
||||
}
|
||||
dsa.cast(_targets, _data, address(0));
|
||||
DSAInterface(_dsa).cast(_targets, _data, address(0));
|
||||
// check if status is safe and only have assets in the specific tokens
|
||||
}
|
||||
|
||||
constructor (address ethPool, address _dsa) public {
|
||||
poolToken = ethPool;
|
||||
dsa = DSAInterface(_dsa);
|
||||
}
|
||||
|
||||
receive() external payable {}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user