2021-04-07 23:45:00 +00:00
|
|
|
pragma solidity ^0.7.0;
|
|
|
|
|
|
|
|
import {
|
|
|
|
TokenMappingInterface,
|
|
|
|
AaveLendingPoolProviderInterface,
|
2021-04-08 23:44:37 +00:00
|
|
|
AaveDataProviderInterface,
|
2021-04-16 12:15:21 +00:00
|
|
|
IndexInterface,
|
|
|
|
InstaListInterface
|
2021-04-07 23:45:00 +00:00
|
|
|
} 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?
|
2021-04-10 21:17:34 +00:00
|
|
|
uint public safeRatioGap = 800000000000000000; // 20%? 2e17
|
2021-04-07 23:45:00 +00:00
|
|
|
|
|
|
|
// TODO: Replace this
|
2021-04-15 22:38:53 +00:00
|
|
|
TokenMappingInterface tokenMapping = TokenMappingInterface(address(0xa31442F2607947a88807b2bcD5D4951eEdd4A885)); // TODO: FAKE ADDR, CHANGE THIS
|
2021-04-07 23:45:00 +00:00
|
|
|
|
|
|
|
AaveLendingPoolProviderInterface constant internal aaveProvider = AaveLendingPoolProviderInterface(0xd05e3E715d945B59290df0ae8eF85c1BdB684744);
|
|
|
|
|
2021-04-08 23:44:37 +00:00
|
|
|
/**
|
|
|
|
* @dev Aave Data Provider
|
|
|
|
*/
|
2021-04-12 06:02:42 +00:00
|
|
|
AaveDataProviderInterface constant internal aaveData = AaveDataProviderInterface(0x7551b5D2763519d4e37e8B81929D336De671d46d);
|
2021-04-08 23:44:37 +00:00
|
|
|
|
|
|
|
|
2021-04-07 23:45:00 +00:00
|
|
|
// dsa => position
|
|
|
|
mapping(uint => bytes) public positions;
|
|
|
|
|
|
|
|
// InstaIndex Address.
|
2021-04-09 15:20:27 +00:00
|
|
|
IndexInterface public constant instaIndex = IndexInterface(0xA9B99766E6C676Cf1975c0D3166F96C0848fF5ad);
|
2021-04-07 23:45:00 +00:00
|
|
|
|
|
|
|
// TODO: Set by construtor?
|
|
|
|
mapping(address => bool) public isSupportedToken;
|
2021-04-15 21:36:40 +00:00
|
|
|
address[] public supportedTokens; // don't add maticAddr. Only add wmaticAddr?
|
|
|
|
|
|
|
|
// Address which will receive L1 data and post it on L2
|
2021-04-16 11:34:45 +00:00
|
|
|
address public maticReceiver = 0x0000000000000000000000000000000000001001;
|
2021-04-07 23:45:00 +00:00
|
|
|
|
2021-04-16 12:15:21 +00:00
|
|
|
InstaListInterface public instaList = InstaListInterface(0x839c2D3aDe63DF5b0b8F3E57D5e145057Ab41556);
|
|
|
|
|
2021-04-07 23:45:00 +00:00
|
|
|
}
|