[ { "inputs": [ { "internalType": "string", "name": "name_", "type": "string" }, { "internalType": "string", "name": "symbol_", "type": "string" }, { "internalType": "uint8", "name": "decimals_", "type": "uint8" }, { "internalType": "address", "name": "underlyingAsset_", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "target", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "eTokenAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "underlyingTokenAmount", "type": "uint256" } ], "name": "Burn", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Mint", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "treasury", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "MintToTreasury", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" } ], "name": "allowance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "approve", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "receiverOfUnderlying", "type": "address" }, { "internalType": "uint256", "name": "eTokenAmount", "type": "uint256" }, { "internalType": "uint256", "name": "underlyingTokenAmount", "type": "uint256" } ], "name": "burn", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "subtractedValue", "type": "uint256" } ], "name": "decreaseAllowance", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "addedValue", "type": "uint256" } ], "name": "increaseAllowance", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "lendingPool", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "user", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "mint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "treasury", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "mintToTreasury", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "transfer", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "target", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "transferUnderlyingTo", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "underlyingAsset", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" } ]
60c06040523480156200001157600080fd5b506040516200167d3803806200167d83398101604081905262000034916200019d565b600160005583836004620000498382620002d0565b506005620000588282620002d0565b50506006805460ff191660ff851617905550604080518082019091526002815261313360f01b60208201526001600160a01b038216620000b65760405162461bcd60e51b8152600401620000ad91906200039c565b60405180910390fd5b506001600160a01b031660a05250503360805250620003d1565b634e487b7160e01b600052604160045260246000fd5b60005b8381101562000103578181015183820152602001620000e9565b50506000910152565b600082601f8301126200011e57600080fd5b81516001600160401b03808211156200013b576200013b620000d0565b604051601f8301601f19908116603f01168101908282118183101715620001665762000166620000d0565b816040528381528660208588010111156200018057600080fd5b62000193846020830160208901620000e6565b9695505050505050565b60008060008060808587031215620001b457600080fd5b84516001600160401b0380821115620001cc57600080fd5b620001da888389016200010c565b95506020870151915080821115620001f157600080fd5b5062000200878288016200010c565b935050604085015160ff811681146200021857600080fd5b60608601519092506001600160a01b03811681146200023657600080fd5b939692955090935050565b600181811c908216806200025657607f821691505b6020821081036200027757634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002cb57600081815260208120601f850160051c81016020861015620002a65750805b601f850160051c820191505b81811015620002c757828155600101620002b2565b5050505b505050565b81516001600160401b03811115620002ec57620002ec620000d0565b6200030481620002fd845462000241565b846200027d565b602080601f8311600181146200033c5760008415620003235750858301515b600019600386901b1c1916600185901b178555620002c7565b600085815260208120601f198616915b828110156200036d578886015182559484019460019091019084016200034c565b50858210156200038c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020815260008251806020840152620003bd816040850160208701620000e6565b601f01601f19169190910160400192915050565b60805160a05161125c6200042160003960008181610207015281816105ed015261076501526000818161026101528181610372015281816104e6015281816105990152610707015261125c6000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80634efecaa5116100a2578063a457c2d711610071578063a457c2d714610249578063a59a99731461025c578063a9059cbb14610283578063dd62ed3e14610296578063f5298aca146102a957600080fd5b80634efecaa5146101c657806370a08231146101d95780637158da7c1461020257806395d89b411461024157600080fd5b806323b872dd116100de57806323b872dd14610178578063313ce5671461018b57806339509351146101a057806340c10f19146101b357600080fd5b806306fdde0314610110578063086f6b561461012e578063095ea7b31461014357806318160ddd14610166575b600080fd5b6101186102bc565b6040516101259190611050565b60405180910390f35b61014161013c36600461109f565b61034e565b005b61015661015136600461109f565b610462565b6040519015158152602001610125565b6003545b604051908152602001610125565b6101566101863660046110c9565b61047c565b60065460405160ff9091168152602001610125565b6101566101ae36600461109f565b6104a0565b6101416101c136600461109f565b6104c2565b61016a6101d436600461109f565b610572565b61016a6101e7366004611105565b6001600160a01b031660009081526001602052604090205490565b6102297f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610125565b610118610620565b61015661025736600461109f565b61062f565b6102297f000000000000000000000000000000000000000000000000000000000000000081565b61015661029136600461109f565b6106aa565b61016a6102a4366004611127565b6106b8565b6101416102b736600461115a565b6106e3565b6060600480546102cb9061118d565b80601f01602080910402602001604051908101604052809291908181526020018280546102f79061118d565b80156103445780601f1061031957610100808354040283529160200191610344565b820191906000526020600020905b81548152906001019060200180831161032757829003601f168201915b5050505050905090565b604080518082019091526002815261383160f01b6020820152336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146103b95760405162461bcd60e51b81526004016103b09190611050565b60405180910390fd5b506103c26107e1565b6001600160a01b0382166104075760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b60448201526064016103b0565b610411828261083a565b816001600160a01b03167fea17b8bbfde795b86df1e092d5facbe8dc767e92b40fb3250a403cf3b41340fc8260405161044c91815260200190565b60405180910390a261045e6001600055565b5050565b6000336104708185856108fb565b60019150505b92915050565b60003361048a858285610a1f565b610495858585610a99565b506001949350505050565b6000336104708185856104b383836106b8565b6104bd91906111c7565b6108fb565b604080518082019091526002815261383160f01b6020820152336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146105245760405162461bcd60e51b81526004016103b09190611050565b5061052d6107e1565b610537828261083a565b816001600160a01b03167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968858260405161044c91815260200190565b604080518082019091526002815261383160f01b6020820152600090336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146105d75760405162461bcd60e51b81526004016103b09190611050565b506105e06107e1565b6106146001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168484610c44565b50806104766001600055565b6060600580546102cb9061118d565b6000338161063d82866106b8565b90508381101561069d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016103b0565b61049582868684036108fb565b600033610470818585610a99565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b604080518082019091526002815261383160f01b6020820152336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146107455760405162461bcd60e51b81526004016103b09190611050565b5061074e6107e1565b6107583383610c96565b61078c6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168483610c44565b60408051838152602081018390526001600160a01b0385169133917f5d624aa9c148153ab3446c1b154f660ee7701e549fe9b62dab7171b1c80e6fa2910160405180910390a36107dc6001600055565b505050565b6002600054036108335760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103b0565b6002600055565b6001600160a01b0382166108905760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016103b0565b80600360008282546108a291906111c7565b90915550506001600160a01b0382166000818152600160209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b03831661095d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103b0565b6001600160a01b0382166109be5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103b0565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610a2b84846106b8565b90506000198114610a935781811015610a865760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016103b0565b610a9384848484036108fb565b50505050565b6001600160a01b038316610afd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103b0565b6001600160a01b038216610b5f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103b0565b6001600160a01b03831660009081526001602052604090205481811015610bd75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103b0565b6001600160a01b0380851660008181526001602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610c379086815260200190565b60405180910390a3610a93565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526107dc908490610dca565b6001600160a01b038216610cf65760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016103b0565b6001600160a01b03821660009081526001602052604090205481811015610d6a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016103b0565b6001600160a01b03831660008181526001602090815260408083208686039055600380548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6000610e1f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610e9c9092919063ffffffff16565b8051909150156107dc5780806020019051810190610e3d91906111e8565b6107dc5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103b0565b6060610eab8484600085610eb3565b949350505050565b606082471015610f145760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103b0565b600080866001600160a01b03168587604051610f30919061120a565b60006040518083038185875af1925050503d8060008114610f6d576040519150601f19603f3d011682016040523d82523d6000602084013e610f72565b606091505b5091509150610f8387838387610f8e565b979650505050505050565b60608315610ffd578251600003610ff6576001600160a01b0385163b610ff65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103b0565b5081610eab565b610eab83838151156110125781518083602001fd5b8060405162461bcd60e51b81526004016103b09190611050565b60005b8381101561104757818101518382015260200161102f565b50506000910152565b602081526000825180602084015261106f81604085016020870161102c565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461109a57600080fd5b919050565b600080604083850312156110b257600080fd5b6110bb83611083565b946020939093013593505050565b6000806000606084860312156110de57600080fd5b6110e784611083565b92506110f560208501611083565b9150604084013590509250925092565b60006020828403121561111757600080fd5b61112082611083565b9392505050565b6000806040838503121561113a57600080fd5b61114383611083565b915061115160208401611083565b90509250929050565b60008060006060848603121561116f57600080fd5b61117884611083565b95602085013595506040909401359392505050565b600181811c908216806111a157607f821691505b6020821081036111c157634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561047657634e487b7160e01b600052601160045260246000fd5b6000602082840312156111fa57600080fd5b8151801515811461112057600080fd5b6000825161121c81846020870161102c565b919091019291505056fea2646970667358221220fa802a9d9c01f3b803ac30a84b89db2df741f3e3d36e7c6feceaf0adf4c5fd7564736f6c63430008120033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000006000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913000000000000000000000000000000000000000000000000000000000000002855534420436f696e284578747261466920496e7465726573742042656172696e6720546f6b656e2900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000056555534443000000000000000000000000000000000000000000000000000000