0 txs
16 calls
constructor
No constructor.
functions
aavePool
viewfunction aavePool() view returns (address)
asset
viewfunction asset() view returns (address)
collateralAsset
viewfunction collateralAsset() view returns (address)
getNewInterest
viewfunction getNewInterest(uint256 lastObservedAmount) view returns (uint256 interestReceived)
owner
viewfunction owner() view returns (address)
proxiableUUID
viewfunction proxiableUUID() view returns (bytes32)
UPGRADE_INTERFACE_VERSION
viewfunction UPGRADE_INTERFACE_VERSION() view returns (string)
vault
viewfunction vault() view returns (address)
deposit
nonpayablefunction deposit(uint256 amount) returns (address collateral, uint256 collateralIncreased)
initialize
nonpayablefunction initialize(address _vault, address _aavePool, address _manager)
renounceOwnership
nonpayablefunction renounceOwnership()
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
upgradeToAndCall
payablefunction upgradeToAndCall(address newImplementation, bytes data) payable
withdraw
nonpayablefunction withdraw(uint256 amount) returns (address collateral, uint256 collateralSold)
events
Initialized
event Initialized(uint64 version)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Upgraded
event Upgraded(address indexed implementation)
errors
AddressEmptyCode
error AddressEmptyCode(address target)
AddressInsufficientBalance
error AddressInsufficientBalance(address account)
ERC1967InvalidImplementation
error ERC1967InvalidImplementation(address implementation)
ERC1967NonPayable
error ERC1967NonPayable()
FailedInnerCall
error FailedInnerCall()
InvalidInitialization
error InvalidInitialization()
NotInitializing
error NotInitializing()
OnlyVault
error OnlyVault()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
ReentrancyGuardReentrantCall
error ReentrancyGuardReentrantCall()
SafeERC20FailedOperation
error SafeERC20FailedOperation(address token)
UUPSUnauthorizedCallContext
error UUPSUnauthorizedCallContext()
UUPSUnsupportedProxiableUUID
error UUPSUnsupportedProxiableUUID(bytes32 slot)
creation bytecode
0x60a060405230608052348015601357600080fd5b5060805161148661003d60003960008181610985015281816109ae0152610b5001526114866000f3fe6080604052600436106100dd5760003560e01c8063a03e4bc31161007f578063b6b55f2511610059578063b6b55f251461025e578063c0c53b8b1461027e578063f2fde38b1461029e578063fbfa77cf146102be57600080fd5b8063a03e4bc3146101e0578063aabaecd614610200578063ad3cb1cc1461022057600080fd5b80634f1ef286116100bb5780634f1ef2861461018c57806352d1902d146101a1578063715018a6146101b65780638da5cb5b146101cb57600080fd5b80630180983c146100e25780632e1a7d4d1461011557806338d52e0f14610154575b600080fd5b3480156100ee57600080fd5b506101026100fd366004611191565b6102de565b6040519081526020015b60405180910390f35b34801561012157600080fd5b50610135610130366004611191565b610374565b604080516001600160a01b03909316835260208301919091520161010c565b34801561016057600080fd5b50600154610174906001600160a01b031681565b6040516001600160a01b03909116815260200161010c565b61019f61019a3660046111d5565b610453565b005b3480156101ad57600080fd5b50610102610472565b3480156101c257600080fd5b5061019f61048f565b3480156101d757600080fd5b506101746104a3565b3480156101ec57600080fd5b50600354610174906001600160a01b031681565b34801561020c57600080fd5b50600254610174906001600160a01b031681565b34801561022c57600080fd5b50610251604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161010c91906112c5565b34801561026a57600080fd5b50610135610279366004611191565b6104d1565b34801561028a57600080fd5b5061019f6102993660046112f8565b61069e565b3480156102aa57600080fd5b5061019f6102b9366004611343565b6108eb565b3480156102ca57600080fd5b50600054610174906001600160a01b031681565b6002546040516370a0823160e01b815230600482015260009182916001600160a01b03909116906370a0823190602401602060405180830381865afa15801561032b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061034f9190611360565b905082811061036957610362838261138f565b915061036e565b600091505b50919050565b6000805481906001600160a01b031633146103a257604051638d1af8bd60e01b815260040160405180910390fd5b6103aa61092e565b600254600354600154600054604051631a4ca37b60e21b81526001600160a01b039283166004820152602481018890529082166044820152928116945016906369328dec906064016020604051808303816000875af1158015610411573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104359190611360565b905061044e600160008051602061143183398151915255565b915091565b61045b61097a565b61046482610a1f565b61046e8282610a83565b5050565b600061047c610b45565b5060008051602061141183398151915290565b610497610b8e565b6104a16000610bc0565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6000805481906001600160a01b031633146104ff57604051638d1af8bd60e01b815260040160405180910390fd5b61050761092e565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610550573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105749190611360565b600354600154919250610594916001600160a01b03908116911686610c31565b60035460015460405163617ba03760e01b81526001600160a01b039182166004820152602481018790523060448201526000606482015291169063617ba03790608401600060405180830381600087803b1580156105f157600080fd5b505af1158015610605573d6000803e3d6000fd5b50506002546040516370a0823160e01b81523060048201526001600160a01b0390911695508392508591506370a0823190602401602060405180830381865afa158015610656573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061067a9190611360565b610684919061138f565b91505061044e600160008051602061143183398151915255565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff166000811580156106e45750825b905060008267ffffffffffffffff1660011480156107015750303b155b90508115801561070f575080155b1561072d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561075757845460ff60401b1916600160401b1785555b61075f610cc1565b61076886610cc9565b610770610cda565b600080546001600160a01b0319166001600160a01b038a16908117909155604080516338d52e0f60e01b815290516338d52e0f916004808201926020929091908290030181865afa1580156107c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ed91906113a2565b600180546001600160a01b039283166001600160a01b0319918216811790925560038054938b16939091168317905560405163cff027d960e01b8152600481019190915263cff027d990602401602060405180830381865afa158015610857573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087b91906113a2565b600280546001600160a01b0319166001600160a01b039290921691909117905583156108e157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050505050565b6108f3610b8e565b6001600160a01b03811661092257604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61092b81610bc0565b50565b60008051602061143183398151915280546001190161096057604051633ee5aeb560e01b815260040160405180910390fd5b60029055565b600160008051602061143183398151915255565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610a0157507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166109f5600080516020611411833981519152546001600160a01b031690565b6001600160a01b031614155b156104a15760405163703e46dd60e11b815260040160405180910390fd5b610a27610cea565b604051630935e01b60e21b81523360048201526001600160a01b0391909116906324d7806c9060240160006040518083038186803b158015610a6857600080fd5b505afa158015610a7c573d6000803e3d6000fd5b5050505050565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610add575060408051601f3d908101601f19168201909252610ada91810190611360565b60015b610b0557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610919565b6000805160206114118339815191528114610b3657604051632a87526960e21b815260048101829052602401610919565b610b408383610cf9565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146104a15760405163703e46dd60e11b815260040160405180910390fd5b33610b976104a3565b6001600160a01b0316146104a15760405163118cdaa760e01b8152336004820152602401610919565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa158015610c81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca59190611360565b9050610cbb8484610cb685856113bf565b610d4f565b50505050565b6104a1610e03565b610cd1610e03565b61092b81610e4c565b610ce2610e03565b6104a1610e54565b6000610cf46104a3565b905090565b610d0282610e5c565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d4757610b408282610ec1565b61046e610f39565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610da08482610f58565b610cbb57604080516001600160a01b038516602482015260006044808301919091528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610df9908590610ffb565b610cbb8482610ffb565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff166104a157604051631afcd79f60e31b815260040160405180910390fd5b6108f3610e03565b610966610e03565b806001600160a01b03163b600003610e9257604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610919565b60008051602061141183398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610ede91906113d2565b600060405180830381855af49150503d8060008114610f19576040519150601f19603f3d011682016040523d82523d6000602084013e610f1e565b606091505b5091509150610f2e85838361105e565b925050505b92915050565b34156104a15760405163b398979f60e01b815260040160405180910390fd5b6000806000846001600160a01b031684604051610f7591906113d2565b6000604051808303816000865af19150503d8060008114610fb2576040519150601f19603f3d011682016040523d82523d6000602084013e610fb7565b606091505b5091509150818015610fe1575080511580610fe1575080806020019051810190610fe191906113ee565b8015610f2e5750505050506001600160a01b03163b151590565b60006110106001600160a01b038416836110bd565b9050805160001415801561103557508080602001905181019061103391906113ee565b155b15610b4057604051635274afe760e01b81526001600160a01b0384166004820152602401610919565b6060826110735761106e826110cb565b6110b6565b815115801561108a57506001600160a01b0384163b155b156110b357604051639996b31560e01b81526001600160a01b0385166004820152602401610919565b50805b9392505050565b60606110b6838360006110f4565b8051156110db5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b6060814710156111195760405163cd78605960e01b8152306004820152602401610919565b600080856001600160a01b0316848660405161113591906113d2565b60006040518083038185875af1925050503d8060008114611172576040519150601f19603f3d011682016040523d82523d6000602084013e611177565b606091505b509150915061118786838361105e565b9695505050505050565b6000602082840312156111a357600080fd5b5035919050565b6001600160a01b038116811461092b57600080fd5b634e487b7160e01b600052604160045260246000fd5b600080604083850312156111e857600080fd5b82356111f3816111aa565b9150602083013567ffffffffffffffff81111561120f57600080fd5b8301601f8101851361122057600080fd5b803567ffffffffffffffff81111561123a5761123a6111bf565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715611269576112696111bf565b60405281815282820160200187101561128157600080fd5b816020840160208301376000602083830101528093505050509250929050565b60005b838110156112bc5781810151838201526020016112a4565b50506000910152565b60208152600082518060208401526112e48160408501602087016112a1565b601f01601f19169190910160400192915050565b60008060006060848603121561130d57600080fd5b8335611318816111aa565b92506020840135611328816111aa565b91506040840135611338816111aa565b809150509250925092565b60006020828403121561135557600080fd5b81356110b6816111aa565b60006020828403121561137257600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610f3357610f33611379565b6000602082840312156113b457600080fd5b81516110b6816111aa565b80820180821115610f3357610f33611379565b600082516113e48184602087016112a1565b9190910192915050565b60006020828403121561140057600080fd5b815180151581146110b657600080fdfe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00a264697066735822122011bfcd24b58bbf8a9b2275b36f636fdba223c3a330989658445987670b1a6cd964736f6c634300081a0033