mirror of
https://github.com/Instadapp/dsa-polygon-migration.git
synced 2024-07-29 22:27:58 +00:00
43 lines
1.5 KiB
Solidity
43 lines
1.5 KiB
Solidity
pragma solidity ^0.7.0;
|
|
|
|
import {
|
|
TokenMappingInterface,
|
|
AaveLendingPoolProviderInterface,
|
|
AaveDataProviderInterface,
|
|
IndexInterface
|
|
} from "./interfaces.sol";
|
|
|
|
contract Variables {
|
|
|
|
// This will be used to have debt/collateral ratio always 20% less than liquidation
|
|
// TODO: Is this number correct for it?
|
|
uint public safeRatioGap = 800000000000000000; // 20%? 2e17
|
|
|
|
// TODO: Add function for flash deposits and withdraw
|
|
mapping(address => mapping(address => uint)) flashDeposits; // Flash deposits of particular token
|
|
mapping(address => uint) flashAmts; // token amount for flashloan usage (these token will always stay raw in this contract)
|
|
|
|
// TODO: Replace this
|
|
TokenMappingInterface tokenMapping = TokenMappingInterface(address(2));
|
|
|
|
AaveLendingPoolProviderInterface constant internal aaveProvider = AaveLendingPoolProviderInterface(0xd05e3E715d945B59290df0ae8eF85c1BdB684744);
|
|
|
|
/**
|
|
* @dev Aave Data Provider
|
|
*/
|
|
// TODO: add L2 Data provider address
|
|
AaveDataProviderInterface constant internal aaveData = AaveDataProviderInterface(address(0));
|
|
|
|
|
|
// dsa => position
|
|
mapping(uint => bytes) public positions;
|
|
mapping(address => mapping(address => uint)) public deposits;
|
|
|
|
// InstaIndex Address.
|
|
IndexInterface public constant instaIndex = IndexInterface(0xA9B99766E6C676Cf1975c0D3166F96C0848fF5ad);
|
|
|
|
// TODO: Set by construtor?
|
|
mapping(address => bool) public isSupportedToken;
|
|
address[] public supportedTokens;
|
|
|
|
} |