0 txs
557 calls
constructor
No constructor.
functions
getLTV
viewfunction getLTV(address pool, address user) view returns (uint256 ltv)
getOraclePriceRatio
viewfunction getOraclePriceRatio(address pool, address tokenAddress, address toTokenAddress) view returns (uint256, uint256)
getTotalCollateral
viewfunction getTotalCollateral(address pool, address asset) view returns (uint256)
getTotalStableDebt
viewfunction getTotalStableDebt(address pool, address underlyingAsset) view returns (uint256 stableDebt)
getTotalVariableDebt
viewfunction getTotalVariableDebt(address pool, address underlyingAsset) view returns (uint256)
REFERRAL_CODE
viewfunction REFERRAL_CODE() view returns (uint16)
events
No events.
errors
InvalidERC20Address
error InvalidERC20Address()
creation bytecode
0x61160261003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100d35760003560e01c8063867301951161008b578063a124289e11610065578063a124289e146101bc578063b80168a1146101dc578063d297e699146101fc57600080fd5b806386730195146101615780638faf5531146101895780639321c41f146101a957600080fd5b80632eb7e205116100bc5780632eb7e205146101205780633583849a14610133578063680f43b11461014e57600080fd5b80630a4e7d49146100d857806319ada637146100fe575b600080fd5b6100eb6100e63660046110ed565b61021c565b6040519081526020015b60405180910390f35b81801561010a57600080fd5b5061011e610119366004611126565b6102a6565b005b6100eb61012e3660046110ed565b61034c565b61013b600081565b60405161ffff90911681526020016100f5565b6100eb61015c3660046110ed565b6103cc565b61017461016f366004611192565b61048a565b604080519283526020830191909152016100f5565b81801561019557600080fd5b5061011e6101a43660046111dd565b610568565b6100eb6101b73660046110ed565b610614565b8180156101c857600080fd5b5061011e6101d7366004611126565b610694565b8180156101e857600080fd5b5061011e6101f7366004611230565b610759565b81801561020857600080fd5b5061011e6102173660046111dd565b6107ca565b6040516335ea6a7560e01b81526001600160a01b03828116600483015260009182918516906335ea6a75906024016101e060405180830381865afa158015610268573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061028c919061133e565b905061029c816101400151610864565b9150505b92915050565b821561034557846001600160a01b031663a415bcad85858560028111156102cf576102cf611461565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201526024810192909252604482015260006064820152908416608482015260a401600060405180830381600087803b15801561032c57600080fd5b505af1158015610340573d6000803e3d6000fd5b505050505b5050505050565b6040516335ea6a7560e01b81526001600160a01b03828116600483015260009182918516906335ea6a75906024016101e060405180830381865afa158015610398573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103bc919061133e565b905061029c816101000151610864565b6040517fbf92857c0000000000000000000000000000000000000000000000000000000081526001600160a01b038281166004830152600091829182919086169063bf92857c9060240160c060405180830381865afa158015610433573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104579190611477565b505050509150915060008211156104825781610475826127106114d7565b61047f91906114ee565b92505b505092915050565b600080600080600061049c8888610918565b925092509250806001600160a01b0316866001600160a01b0316036104c657509092509050610560565b60008060006104d58b8a610918565b925092509250806001600160a01b0316846001600160a01b031614610540576000806105018d87610918565b50909250905081610512828a6114d7565b61051c91906114ee565b975083871461053d5786610530858a6114d7565b61053a91906114ee565b97505b50505b8261054b83886114d7565b61055591906114ee565b975090955050505050505b935093915050565b811561060e576105836001600160a01b038416828685610b40565b6040517f617ba0370000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301526024820184905282811660448301526000606483015285169063617ba03790608401600060405180830381600087803b1580156105f557600080fd5b505af1158015610609573d6000803e3d6000fd5b505050505b50505050565b6040516335ea6a7560e01b81526001600160a01b03828116600483015260009182918516906335ea6a75906024016101e060405180830381865afa158015610660573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610684919061133e565b905061029c816101200151610864565b8215610345576106af6001600160a01b038516828786610b40565b846001600160a01b031663573ade8185858560028111156106d2576106d2611461565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201526024810192909252604482015290841660648201526084016020604051808303816000875af115801561072d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107519190611510565b505050505050565b6040517f28530a4700000000000000000000000000000000000000000000000000000000815260ff821660048201526001600160a01b038316906328530a4790602401600060405180830381600087803b1580156107b657600080fd5b505af1158015610751573d6000803e3d6000fd5b811561060e576040517f69328dec0000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301526024820184905282811660448301528516906369328dec906064016020604051808303816000875af1158015610840573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103459190611510565b600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03831601610892575047919050565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa1580156108ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102a09190611510565b919050565b600080600080856001600160a01b0316630542975c6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561095c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109809190611529565b90506000816001600160a01b031663fca513a86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e69190611529565b6040517fb3596f070000000000000000000000000000000000000000000000000000000081526001600160a01b0388811660048301529192509082169063b3596f0790602401602060405180830381865afa158015610a49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6d9190611510565b9450806001600160a01b0316638c89b64f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610aad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad19190611510565b9350806001600160a01b031663e19f47006040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b359190611529565b925050509250925092565b8373eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03821601610b98576040517fedfc505600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604051636eb1769f60e11b81526001600160a01b03858116600483015284811660248301526000919087169063dd62ed3e90604401602060405180830381865afa158015610bea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0e9190611510565b1115610c2057610c2085846000610c2b565b610345858484610d99565b801580610ca55750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015610c7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca39190611510565b155b610d1c5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000060648201526084015b60405180910390fd5b6040516001600160a01b038316602482015260448101829052610d9490849063095ea7b360e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152610e46565b505050565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa158015610de9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0d9190611510565b905061060e8463095ea7b360e01b85610e26868661154d565b6040516001600160a01b0390921660248301526044820152606401610d48565b6000610e9b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610f2e9092919063ffffffff16565b9050805160001480610ebc575080806020019051810190610ebc9190611560565b610d945760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610d13565b6060610f3d8484600085610f45565b949350505050565b606082471015610fbd5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610d13565b600080866001600160a01b03168587604051610fd991906115a6565b60006040518083038185875af1925050503d8060008114611016576040519150601f19603f3d011682016040523d82523d6000602084013e61101b565b606091505b509150915061102c87838387611037565b979650505050505050565b606083156110a657825160000361109f576001600160a01b0385163b61109f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610d13565b5081610f3d565b610f3d83838151156110bb5781518083602001fd5b8060405162461bcd60e51b8152600401610d1391906115c2565b6001600160a01b03811681146110ea57600080fd5b50565b6000806040838503121561110057600080fd5b823561110b816110d5565b9150602083013561111b816110d5565b809150509250929050565b600080600080600060a0868803121561113e57600080fd5b8535611149816110d5565b94506020860135611159816110d5565b93506040860135925060608601356003811061117457600080fd5b91506080860135611184816110d5565b809150509295509295909350565b6000806000606084860312156111a757600080fd5b83356111b2816110d5565b925060208401356111c2816110d5565b915060408401356111d2816110d5565b809150509250925092565b600080600080608085870312156111f357600080fd5b84356111fe816110d5565b9350602085013561120e816110d5565b9250604085013591506060850135611225816110d5565b939692955090935050565b6000806040838503121561124357600080fd5b823561124e816110d5565b9150602083013560ff8116811461111b57600080fd5b6040516101e0810167ffffffffffffffff8111828210171561129657634e487b7160e01b600052604160045260246000fd5b60405290565b6000602082840312156112ae57600080fd5b6040516020810181811067ffffffffffffffff821117156112df57634e487b7160e01b600052604160045260246000fd5b6040529151825250919050565b80516fffffffffffffffffffffffffffffffff8116811461091357600080fd5b805164ffffffffff8116811461091357600080fd5b805161ffff8116811461091357600080fd5b8051610913816110d5565b60006101e0828403121561135157600080fd5b611359611264565b611363848461129c565b8152611371602084016112ec565b6020820152611382604084016112ec565b6040820152611393606084016112ec565b60608201526113a4608084016112ec565b60808201526113b560a084016112ec565b60a08201526113c660c0840161130c565b60c08201526113d760e08401611321565b60e08201526101006113ea818501611333565b908201526101206113fc848201611333565b9082015261014061140e848201611333565b90820152610160611420848201611333565b908201526101806114328482016112ec565b908201526101a06114448482016112ec565b908201526101c06114568482016112ec565b908201529392505050565b634e487b7160e01b600052602160045260246000fd5b60008060008060008060c0878903121561149057600080fd5b865195506020870151945060408701519350606087015192506080870151915060a087015190509295509295509295565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176102a0576102a06114c1565b60008261150b57634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561152257600080fd5b5051919050565b60006020828403121561153b57600080fd5b8151611546816110d5565b9392505050565b808201808211156102a0576102a06114c1565b60006020828403121561157257600080fd5b8151801515811461154657600080fd5b60005b8381101561159d578181015183820152602001611585565b50506000910152565b600082516115b8818460208701611582565b9190910192915050565b60208152600082518060208401526115e1816040850160208701611582565b601f01601f1916919091016040019291505056fea164736f6c6343000812000a