mirror of
https://github.com/Instadapp/yield-contract.git
synced 2024-07-29 21:47:29 +00:00
logics basic structure
This commit is contained in:
parent
960c9748b4
commit
1d4844e219
|
@ -1,6 +1,8 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
pragma solidity ^0.6.8;
|
||||
|
||||
import { DSMath } from "../../libs/safeMath.sol";
|
||||
|
||||
contract EthRateLogic {
|
||||
address poolToken;
|
||||
|
||||
|
@ -35,5 +37,5 @@ contract EthRateLogic {
|
|||
poolToken = address(ethPool);
|
||||
}
|
||||
|
||||
receive() external payable {}
|
||||
receive() external payable {}
|
||||
}
|
32
contracts/logics/settle/eth/logicOne.sol
Normal file
32
contracts/logics/settle/eth/logicOne.sol
Normal file
|
@ -0,0 +1,32 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
pragma solidity ^0.6.8;
|
||||
|
||||
import { DSMath } from "../../../libs/safeMath.sol";
|
||||
|
||||
contract LogicOne {
|
||||
|
||||
address poolToken;
|
||||
|
||||
function maxComp(uint amt) public {
|
||||
// open cast function with flashloan and Compound connectors access
|
||||
// check if status is safe and only have assets in the specific tokens
|
||||
}
|
||||
|
||||
function unwindCompToSafe(uint amt) public {
|
||||
// Will only uniwnd till safe limit
|
||||
// open cast function with flashloan and Compound connectors access
|
||||
// check if status is safe and only have assets in the specific tokens
|
||||
}
|
||||
|
||||
function unwindMaxComp(uint amt) public {
|
||||
// open cast function with flashloan and Compound connectors access
|
||||
// check if status is safe and only have assets in the specific tokens
|
||||
}
|
||||
|
||||
constructor (address ethPool) public {
|
||||
poolToken = address(ethPool);
|
||||
}
|
||||
|
||||
receive() external payable {}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user