Loading
[ { "inputs": [], "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": false, "internalType": "address", "name": "_newBorrowerOperationsAddress", "type": "address" } ], "name": "BorrowerOperationsAddressChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "_newStabilityPoolAddress", "type": "address" } ], "name": "StabilityPoolAddressChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "_user", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "TokenBalanceUpdated", "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" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "_troveManagerAddress", "type": "address" } ], "name": "TroveManagerAddressChanged", "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": [], "name": "borrowerOperationsAddress", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_account", "type": "address" }, { "internalType": "uint256", "name": "_amount", "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": [], "name": "domainSeparator", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "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": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" } ], "name": "nonces", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }, { "internalType": "uint8", "name": "v", "type": "uint8" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" } ], "name": "permit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_poolAddress", "type": "address" }, { "internalType": "address[]", "name": "_receiver", "type": "address[]" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "returnFromPool", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_sender", "type": "address" }, { "internalType": "address", "name": "_poolAddress", "type": "address" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "sendToPool", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "stabilityPoolAddress", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "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": "recipient", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "transfer", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "address", "name": "recipient", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "troveManagerAddress", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "version", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" } ]
6101806040523480156200001257600080fd5b50600061012081905260408051918252517f143219c9e69b09e07e095fcc889b43d8f46ca892bba65f08dc3a0050869a56789181900360200190a1600061014081905260408051918252517f82966d27eea39b038ee0fa30cd16532bb24f6e65d31cb58fb227aa5766cdcc7f9181900360200190a1600061016081905260408051918252517f3ca631ffcd2a9b5d9ae18543fc82f58eb4ca33af9e6ab01b7a8e95331e6ed9859181900360200190a1604080518082018252600a8152695452554d5020444f475360b01b6020918201528151808301835260018152603160f81b9082015281516004815260248101835290810180516001600160e01b0316631a2b808360e01b178152915181517fd80af59b4a2b0549129a6e2da99204eb73019e5555ed4d355174a4056f58b343937fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6936060937377b31177b1676d3513c7e3f52d6124ba73b0a11693919290918291908083835b60208310620001a85780518252601f19909201916020918201910162000187565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146200020c576040519150601f19603f3d011682016040523d82523d6000602084013e62000211565b606091505b5060e085905261010084905291506200023490506001600160e01b03620002bc16565b60a0526200026d7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f84846001600160e01b03620002c016565b6080528051602080830191908110156200028657600080fd5b505160601b6001600160601b03191660c05250620002b691503390506c0c9f2c9cd04674edea4000000062000321565b6200043c565b4690565b6000838383620002d86001600160e01b03620002bc16565b6040805160208082019690965280820194909452606084019290925260808301523060a0808401919091528151808403909101815260c090920190528051910120949350505050565b6001600160a01b0382166200033257fe5b6200034e81600054620003da60201b62000bba1790919060201c565b60009081556001600160a01b0383168152600260209081526040909120546200038291839062000bba620003da821b17901c565b6001600160a01b03831660008181526002602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60008282018381101562000435576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60805160a05160c05160601c60e051610100516101205160601c6101405160601c6101605160601c6114d3620004d3600039806108935280610fd15250806105235280611036528061115452508061069e5280610f675280611003525080610b8f525080610b6e525080610549528061073a5280610c4e5280610dce5280610f35525080610af4525080610b2452506114d36000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c806370a08231116100b8578063a9059cbb1161007c578063a9059cbb146103f5578063b7f8cf9b14610421578063bb997bac14610429578063d505accf1461045f578063dd62ed3e146104b0578063f698da25146104de57610137565b806370a08231146103495780637ecebe001461036f57806395d89b41146103955780639dc29fac1461039d578063a457c2d7146103c957610137565b8063313ce567116100ff578063313ce5671461026d578063395093511461028b57806354fd4d50146102b75780635a4d28bb146102bf5780636a629249146102c757610137565b806306fdde031461013c578063095ea7b3146101b95780630b622ab2146101f957806318160ddd1461021d57806323b872dd14610237575b600080fd5b6101446104e6565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017e578181015183820152602001610166565b50505050905090810190601f1680156101ab5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101e5600480360360408110156101cf57600080fd5b506001600160a01b03813516906020013561050b565b604080519115158252519081900360200190f35b610201610521565b604080516001600160a01b039092168252519081900360200190f35b610225610545565b60408051918252519081900360200190f35b6101e56004803603606081101561024d57600080fd5b506001600160a01b038135811691602081013590911690604001356105d1565b610275610640565b6040805160ff9092168252519081900360200190f35b6101e5600480360360408110156102a157600080fd5b506001600160a01b038135169060200135610645565b610144610681565b61020161069c565b610347600480360360608110156102dd57600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561030857600080fd5b82018360208201111561031a57600080fd5b8035906020019184602083028401116401000000008311171561033c57600080fd5b9193509150356106c0565b005b6102256004803603602081101561035f57600080fd5b50356001600160a01b0316610736565b6102256004803603602081101561038557600080fd5b50356001600160a01b03166107e0565b6101446107fb565b610347600480360360408110156103b357600080fd5b506001600160a01b038135169060200135610819565b6101e5600480360360408110156103df57600080fd5b506001600160a01b03813516906020013561082f565b6101e56004803603604081101561040b57600080fd5b506001600160a01b038135169060200135610884565b610201610891565b6103476004803603606081101561043f57600080fd5b506001600160a01b038135811691602081013590911690604001356108b5565b610347600480360360e081101561047557600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c001356108cd565b610225600480360360408110156104c657600080fd5b506001600160a01b0381358116916020013516610ac5565b610225610af0565b60408051808201909152600a8152695452554d5020444f475360b01b60208201525b90565b6000610518338484610c1b565b50600192915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156105a057600080fd5b505afa1580156105b4573d6000803e3d6000fd5b505050506040513d60208110156105ca57600080fd5b5051905090565b60006105de848484610d34565b6106368433610631856040518060600160405280602881526020016113f5602891396001600160a01b038a166000908152600360209081526040808320338452909152902054919063ffffffff610e9316565b610c1b565b5060019392505050565b601290565b3360008181526003602090815260408083206001600160a01b03871684529091528120549091610518918590610631908663ffffffff610bba16565b6040805180820190915260018152603160f81b602082015290565b7f000000000000000000000000000000000000000000000000000000000000000081565b6106c8610f2a565b60005b8281101561072f578383828181106106df57fe5b905060200201356001600160a01b03166001600160a01b0316856001600160a01b031660008051602061141d833981519152846040518082815260200191505060405180910390a36001016106cb565b5050505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231836040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156107ae57600080fd5b505afa1580156107c2573d6000803e3d6000fd5b505050506040513d60208110156107d857600080fd5b505192915050565b6001600160a01b031660009081526001602052604090205490565b604080518082019091526004815263444f475360e01b602082015290565b610821610fc6565b61082b8282611093565b5050565b6000610518338461063185604051806060016040528060258152602001611479602591393360009081526003602090815260408083206001600160a01b038d168452909152902054919063ffffffff610e9316565b6000610518338484610d34565b7f000000000000000000000000000000000000000000000000000000000000000081565b6108bd611149565b6108c88383836111b0565b505050565b42841015610922576040805162461bcd60e51b815260206004820152601c60248201527f5452554d5020444f47533a206578706972656420646561646c696e6500000000604482015290519081900360640190fd5b600061092c610af0565b6001600160a01b03808a166000818152600160208181526040808420805480850190915581517377b31177b1676d3513c7e3f52d6124ba73b0a1168185015280830196909652958e166060860152608085018d905260a085019590955260c08085018c90528551808603909101815260e08501865280519082012061190160f01b6101008601526101028501969096526101228085019690965284518085039096018652610142840180865286519682019690962095839052610162840180865286905260ff8a166101828501526101a284018990526101c284018890529351949550909390926101e2808401939192601f1981019281900390910190855afa158015610a3d573d6000803e3d6000fd5b505050602060405103519050886001600160a01b0316816001600160a01b031614610aaf576040805162461bcd60e51b815260206004820152601d60248201527f5452554d5020444f47533a20696e76616c6964207369676e6174757265000000604482015290519081900360640190fd5b610aba898989610c1b565b505050505050505050565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b60007f0000000000000000000000000000000000000000000000000000000000000000610b1b611292565b1415610b4857507f0000000000000000000000000000000000000000000000000000000000000000610508565b610bb37f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000611296565b9050610508565b600082820183811015610c14576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038316610c2b57fe5b6001600160a01b038216610c3b57fe5b336001600160a01b0384161415610cd2577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f698da256040518163ffffffff1660e01b815260040160206040518083038186803b158015610ca557600080fd5b505afa158015610cb9573d6000803e3d6000fd5b505050506040513d6020811015610ccf57600080fd5b50505b6001600160a01b03808416600081815260036020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b816001600160a01b0316836001600160a01b031660008051602061141d833981519152836040518082815260200191505060405180910390a3604080516001600160a01b038581166024830152848116604483015260648201849052336084808401919091528351808403909101815260a490920183526020820180516001600160e01b03166320a1cb8360e11b178152925182516000947f000000000000000000000000000000000000000000000000000000000000000093909316939282918083835b60208310610e185780518252601f199092019160209182019101610df9565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610e7a576040519150601f19603f3d011682016040523d82523d6000602084013e610e7f565b606091505b5050905080610e8d57600080fd5b50505050565b60008184841115610f225760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610ee7578181015183820152602001610ecf565b50505050905090810190601f168015610f145780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610f895750336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016145b610fc45760405162461bcd60e51b815260040180806020018281038252603c81526020018061143d603c913960400191505060405180910390fd5b565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110255750336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016145b806110585750336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016145b610fc45760405162461bcd60e51b815260040180806020018281038252605381526020018061137c6053913960600191505060405180910390fd5b6001600160a01b0382166110a357fe5b6110e68160405180606001604052806022815260200161132f602291396001600160a01b038516600090815260026020526040902054919063ffffffff610e9316565b6001600160a01b03831660009081526002602052604081209190915554611113908263ffffffff6112ec16565b60009081556040805183815290516001600160a01b0385169160008051602061141d833981519152919081900360200190a35050565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610fc45760405162461bcd60e51b815260040180806020018281038252602b815260200180611351602b913960400191505060405180910390fd5b6001600160a01b0383166111c057fe5b6001600160a01b0382166111d057fe5b611213816040518060600160405280602681526020016113cf602691396001600160a01b038616600090815260026020526040902054919063ffffffff610e9316565b6001600160a01b038085166000908152600260205260408082209390935590841681522054611248908263ffffffff610bba16565b6001600160a01b03808416600081815260026020908152604091829020949094558051858152905191939287169260008051602061141d83398151915292918290030190a3505050565b4690565b60008383836112a3611292565b6040805160208082019690965280820194909452606084019290925260808301523060a0808401919091528151808403909101815260c090920190528051910120949350505050565b6000610c1483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610e9356fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e63655452554d5020444f47533a2043616c6c6572206973206e6f74207468652053746162696c697479506f6f6c5452554d5020444f47533a2043616c6c6572206973206e65697468657220426f72726f7765724f7065726174696f6e73206e6f722054726f76654d616e61676572206e6f722053746162696c697479506f6f6c45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5452554d5020444f47533a2043616c6c6572206973206e6569746865722054726f76654d616e61676572206e6f722053746162696c697479506f6f6c45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212201d65160b0c7162e6c38f4d5a03a6d7ec1a83a8800e11fffa3a99d45e53aa491f64736f6c634300060b0033