0 txs
0 calls
constructor
constructor(address _config, address _etherOracle, address _miningIncentives)
functions
configurator
viewfunction configurator() view returns (address)
getAssetPrice
viewfunction getAssetPrice(address pool) view returns (uint256)
getBuyAbleEarnings
viewfunction getBuyAbleEarnings(address[] users) view returns (uint256[] amounts)
getCollateralRatio
viewfunction getCollateralRatio(address user, address pool) view returns (uint256)
getEtherPrice
viewfunction getEtherPrice() view returns (uint256)
getEusdMintableAmount
viewfunction getEusdMintableAmount(address user, address pool) view returns (uint256 eusdAmount)
getExcessIncomeAmount
viewfunction getExcessIncomeAmount(address pool) view returns (uint256 assetAmount)
getLiquidateableAmount
viewfunction getLiquidateableAmount(address user, address pool) view returns (uint256 etherAmount, uint256 eusdAmount)
getLiquidateFund
viewfunction getLiquidateFund(address user, address pool) view returns (uint256 eusdAmount)
getOverallCollateralRatio
viewfunction getOverallCollateralRatio(address pool) view returns (uint256)
getRedeemableAmount
viewfunction getRedeemableAmount(address user, address pool) view returns (uint256)
getRedeemableAmounts
viewfunction getRedeemableAmounts(address[] users, address pool) view returns (uint256[] amounts)
getStakingPoolAPR
viewfunction getStakingPoolAPR(address poolAddress, address lbr, address lpToken) view returns (uint256 apr)
getTokenPrice
viewfunction getTokenPrice(address token, address UniPool, address wethAddress) view returns (uint256 price)
getToTalTVL
viewfunction getToTalTVL() view returns (uint256 a)
getWithdrawableAmount
viewfunction getWithdrawableAmount(address user, address pool) view returns (uint256)
owner
viewfunction owner() view returns (address)
pools
viewfunction pools(uint256) view returns (address)
priceFeed
viewfunction priceFeed() view returns (address)
renounceOwnership
nonpayablefunction renounceOwnership()
setPools
nonpayablefunction setPools(address[] _pools)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
events
BatchClaimingRewardsForUsers
event BatchClaimingRewardsForUsers(address indexed caller, string desc, uint256 total)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
errors
No errors.
creation bytecode
0x60a06040523480156200001157600080fd5b506040516200222d3803806200222d8339810160408190526200003491620000e3565b6200003f3362000076565b6001600160a01b03928316608052600280549284166001600160a01b0319938416179055600380549190931691161790556200012d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620000de57600080fd5b919050565b600080600060608486031215620000f957600080fd5b6200010484620000c6565b92506200011460208501620000c6565b91506200012460408501620000c6565b90509250925092565b6080516120ba6200017360003960008181610167015281816106b201528181610b6e01528181610d5d0152818161107e0152818161110501526119b701526120ba6000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c8063a24296c8116100b8578063b3596f071161007c578063b3596f07146102c2578063ca7c4dba146102d5578063d07c380c146102dd578063eaf84c57146102f0578063f2fde38b14610303578063f8055ba11461031657600080fd5b8063a24296c814610256578063a2cbcfde14610269578063a30f553f14610289578063ab006a911461029c578063ac4afa38146102af57600080fd5b806360a82f3d1161010a57806360a82f3d146101da5780636eabfa2414610202578063715018a614610215578063741bef1a1461021f5780638544c53b146102325780638da5cb5b1461024557600080fd5b806327333cf0146101475780632b507df8146101625780633a357a27146101a157806346c58227146101b457806353c82172146101c7575b600080fd5b61014f610329565b6040519081526020015b60405180910390f35b6101897f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610159565b61014f6101af366004611cb3565b610418565b61014f6101c2366004611cb3565b6105a9565b61014f6101d5366004611cec565b6107e2565b6101ed6101e8366004611cb3565b6108f9565b60408051928352602083019190915201610159565b61014f610210366004611cb3565b610b48565b61021d610d08565b005b600254610189906001600160a01b031681565b61021d610240366004611d4d565b610d1c565b6000546001600160a01b0316610189565b61014f610264366004611cb3565b610d3b565b61027c610277366004611d4d565b610e46565b6040516101599190611e06565b61014f610297366004611cb3565b61100f565b61014f6102aa366004611e4a565b61128f565b6101896102bd366004611e67565b611385565b61014f6102d0366004611e4a565b6113af565b61014f6114a5565b61014f6102eb366004611e4a565b61152a565b61014f6102fe366004611cec565b6116e7565b61021d610311366004611e4a565b6118e5565b61027c610324366004611e80565b611963565b6000805b600154811015610414576103676001828154811061034d5761034d611efb565b6000918252602090912001546001600160a01b03166113af565b6001828154811061037a5761037a611efb565b6000918252602091829020015460408051630be8a2d160e11b815290516001600160a01b03909216926317d145a2926004808401938290030181865afa1580156103c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103ec9190611f11565b6103f69190611f40565b6104009083611f57565b91508061040c81611f6a565b91505061032d565b5090565b60405162b5b06160e31b81526001600160a01b03838116600483015260009183918216906305ad830890602401602060405180830381865afa158015610462573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104869190611f11565b6000036104a05769021e19e0c9bab24000009150506105a3565b60405162b5b06160e31b81526001600160a01b0385811660048301528216906305ad830890602401602060405180830381865afa1580156104e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105099190611f11565b610512846113af565b604051631a760ecf60e21b81526001600160a01b0387811660048301528416906369d83b3c90602401602060405180830381865afa158015610558573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057c9190611f11565b6105869190611f40565b6105959064e8d4a51000611f40565b61059f9190611f83565b9150505b92915050565b60405162b5b06160e31b81526001600160a01b03838116600483015260009183918216906305ad830890602401602060405180830381865afa1580156105f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106179190611f11565b60000361069057604051631a760ecf60e21b81526001600160a01b0385811660048301528216906369d83b3c90602401602060405180830381865afa158015610664573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106889190611f11565b9150506105a3565b60405163ae91874960e01b81526001600160a01b0384811660048301526000917f00000000000000000000000000000000000000000000000000000000000000009091169063ae91874990602401602060405180830381865afa1580156106fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071f9190611f11565b90508061072c8686610418565b1161073c576000925050506105a3565b6107468585610418565b816107518787610418565b61075b9190611fa5565b604051631a760ecf60e21b81526001600160a01b0388811660048301528516906369d83b3c90602401602060405180830381865afa1580156107a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c59190611f11565b6107cf9190611f40565b6107d99190611f83565b95945050505050565b6040516370a0823160e01b81526001600160a01b03838116600483015260009182918616906370a0823190602401602060405180830381865afa15801561082d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108519190611f11565b6040516370a0823160e01b81526001600160a01b0386811660048301529192506000918516906370a0823190602401602060405180830381865afa15801561089d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c19190611f11565b9050816108cc6114a5565b6108d69083611f40565b6108e5906402540be400611f40565b6108ef9190611f83565b9695505050505050565b60008082680821ab0d44149800006109118683610418565b1115610924576000809250925050610b41565b6806c6b935b8bbd400006109388686610418565b1015806109565750680821ab0d44149800006109538561128f565b10155b806109c45750806001600160a01b03166375baf37f6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561099a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109be9190611fb8565b60ff1615155b15610a6c57604051631a760ecf60e21b81526001600160a01b038681166004830152600291908316906369d83b3c90602401602060405180830381865afa158015610a13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a379190611f11565b610a419190611f83565b92506305f5e100610a51856113af565b610a5b9085611f40565b610a659190611f83565b9150610b3f565b604051631a760ecf60e21b81526001600160a01b0386811660048301528216906369d83b3c90602401602060405180830381865afa158015610ab2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad69190611f11565b92506305f5e100610ae6856113af565b610af09085611f40565b610afa9190611f83565b915068056bc75e2d63100000610b108686610418565b10610b3f57610b1f8585610418565b610b328368056bc75e2d63100000611f40565b610b3c9190611f83565b91505b505b9250929050565b60405163ae91874960e01b81526001600160a01b038083166004830152600091839183917f00000000000000000000000000000000000000000000000000000000000000009091169063ae91874990602401602060405180830381865afa158015610bb7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bdb9190611f11565b905080610be88686610418565b11610bf8576000925050506105a3565b60405162b5b06160e31b81526001600160a01b0386811660048301528316906305ad830890602401602060405180830381865afa158015610c3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c619190611f11565b8169d3c21bcecceda1000000610c76876113af565b604051631a760ecf60e21b81526001600160a01b038a811660048301528716906369d83b3c90602401602060405180830381865afa158015610cbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce09190611f11565b610cea9190611f40565b610cf49190611f83565b610cfe9190611f83565b6107d99190611fa5565b610d10611b73565b610d1a6000611bcd565b565b610d24611b73565b8051610d37906001906020840190611c1d565b5050565b604051631e24111360e21b81526001600160a01b0383811660048301526000917f000000000000000000000000000000000000000000000000000000000000000090911690637890444c90602401602060405180830381865afa158015610da6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dca9190611fdb565b610dd6575060006105a3565b60405162b5b06160e31b81526001600160a01b0384811660048301528316906305ad830890602401602060405180830381865afa158015610e1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e3f9190611f11565b9392505050565b6060815167ffffffffffffffff811115610e6257610e62611d37565b604051908082528060200260200182016040528015610e8b578160200160208202803683370190505b50905060005b82518110156110095760035483516001600160a01b03909116906386be939890859084908110610ec357610ec3611efb565b60200260200101516040518263ffffffff1660e01b8152600401610ef691906001600160a01b0391909116815260200190565b602060405180830381865afa158015610f13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f379190611fdb565b15610ff75760035483516001600160a01b0390911690628cc26290859084908110610f6457610f64611efb565b60200260200101516040518263ffffffff1660e01b8152600401610f9791906001600160a01b0391909116815260200190565b602060405180830381865afa158015610fb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd89190611f11565b828281518110610fea57610fea611efb565b6020026020010181815250505b8061100181611f6a565b915050610e91565b50919050565b600080826001600160a01b03166375baf37f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611050573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110749190611fb8565b60ff1615611103577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d562a21c6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110fe9190611ffd565b611185565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630c742f586040518163ffffffff1660e01b8152600401602060405180830381865afa158015611161573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111859190611ffd565b604051636eb1769f60e11b81526001600160a01b038681166004830152858116602483015291925060009183169063dd62ed3e90604401602060405180830381865afa1580156111d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111fd9190611f11565b905080600003611212576000925050506105a3565b6040516370a0823160e01b81526001600160a01b038681166004830152600091908416906370a0823190602401602060405180830381865afa15801561125c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112809190611f11565b90508082116107d957816108ef565b600080829050806001600160a01b0316639754d1dc6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f79190611f11565b611300846113af565b826001600160a01b03166317d145a26040518163ffffffff1660e01b8152600401602060405180830381865afa15801561133e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113629190611f11565b61136c9190611f40565b61137b9064e8d4a51000611f40565b610e3f9190611f83565b6001818154811061139557600080fd5b6000918252602090912001546001600160a01b0316905081565b600080600260009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015611405573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114299190612034565b505050915050670de0b6b3a764000081846001600160a01b0316635df104726040518163ffffffff1660e01b8152600401602060405180830381865afa158015611477573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061149b9190611f11565b61137b9190611f40565b600080600260009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156114fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061151f9190612034565b509195945050505050565b600080829050806001600160a01b03166375baf37f6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561156e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115929190611fb8565b60ff16156115a35750600092915050565b6000816001600160a01b0316635c222bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156115e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116079190611ffd565b9050816001600160a01b03166317d145a26040518163ffffffff1660e01b8152600401602060405180830381865afa158015611647573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166b9190611f11565b6040516370a0823160e01b81526001600160a01b0386811660048301528316906370a0823190602401602060405180830381865afa1580156116b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116d59190611f11565b6116df9190611fa5565b949350505050565b600080846001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611728573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061174c9190611f11565b90506000856001600160a01b031663646033bc6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561178e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b29190611f11565b6040516370a0823160e01b81526001600160a01b0386811660048301529192506000918716906370a0823190602401602060405180830381865afa1580156117fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118229190611f11565b90506000856001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611864573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118889190611f11565b90506118948285611f40565b61189f906002611f40565b6118a98483611f40565b6118b69062015180611f40565b6118c29061016d611f40565b6118cf90620f4240611f40565b6118d99190611f83565b98975050505050505050565b6118ed611b73565b6001600160a01b0381166119575760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61196081611bcd565b50565b60608267ffffffffffffffff81111561197e5761197e611d37565b6040519080825280602002602001820160405280156119a7578160200160208202803683370190505b50905060005b83811015611b6b577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637890444c8686848181106119f6576119f6611efb565b9050602002016020810190611a0b9190611e4a565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611a4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a739190611fdb565b611a9c576000828281518110611a8b57611a8b611efb565b602002602001018181525050611b59565b826001600160a01b03166305ad8308868684818110611abd57611abd611efb565b9050602002016020810190611ad29190611e4a565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611b16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b3a9190611f11565b828281518110611b4c57611b4c611efb565b6020026020010181815250505b80611b6381611f6a565b9150506119ad565b509392505050565b6000546001600160a01b03163314610d1a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161194e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054828255906000526020600020908101928215611c72579160200282015b82811115611c7257825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190611c3d565b506104149291505b808211156104145760008155600101611c7a565b6001600160a01b038116811461196057600080fd5b8035611cae81611c8e565b919050565b60008060408385031215611cc657600080fd5b8235611cd181611c8e565b91506020830135611ce181611c8e565b809150509250929050565b600080600060608486031215611d0157600080fd5b8335611d0c81611c8e565b92506020840135611d1c81611c8e565b91506040840135611d2c81611c8e565b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215611d6057600080fd5b823567ffffffffffffffff80821115611d7857600080fd5b818501915085601f830112611d8c57600080fd5b813581811115611d9e57611d9e611d37565b8060051b604051601f19603f83011681018181108582111715611dc357611dc3611d37565b604052918252848201925083810185019188831115611de157600080fd5b938501935b828510156118d957611df785611ca3565b84529385019392850192611de6565b6020808252825182820181905260009190848201906040850190845b81811015611e3e57835183529284019291840191600101611e22565b50909695505050505050565b600060208284031215611e5c57600080fd5b8135610e3f81611c8e565b600060208284031215611e7957600080fd5b5035919050565b600080600060408486031215611e9557600080fd5b833567ffffffffffffffff80821115611ead57600080fd5b818601915086601f830112611ec157600080fd5b813581811115611ed057600080fd5b8760208260051b8501011115611ee557600080fd5b60209283019550935050840135611d2c81611c8e565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611f2357600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176105a3576105a3611f2a565b808201808211156105a3576105a3611f2a565b600060018201611f7c57611f7c611f2a565b5060010190565b600082611fa057634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156105a3576105a3611f2a565b600060208284031215611fca57600080fd5b815160ff81168114610e3f57600080fd5b600060208284031215611fed57600080fd5b81518015158114610e3f57600080fd5b60006020828403121561200f57600080fd5b8151610e3f81611c8e565b805169ffffffffffffffffffff81168114611cae57600080fd5b600080600080600060a0868803121561204c57600080fd5b6120558661201a565b94506020860151935060408601519250606086015191506120786080870161201a565b9050929550929590935056fea2646970667358221220a306f4dc9417d0ed49c3098fe5b0382ac8e83411ac6741aacc7348941afc9cb764736f6c63430008120033000000000000000000000000c8353594eeedc5ce5a4544d3d9907b694c4690ff0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b84190000000000000000000000000b2659734121feb636534213a159ac91691edbde