[ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "AccessControlBadConfirmation", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" }, { "internalType": "bytes32", "name": "neededRole", "type": "bytes32" } ], "name": "AccessControlUnauthorizedAccount", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "allowance", "type": "uint256" }, { "internalType": "uint256", "name": "needed", "type": "uint256" } ], "name": "ERC20InsufficientAllowance", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "needed", "type": "uint256" } ], "name": "ERC20InsufficientBalance", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "approver", "type": "address" } ], "name": "ERC20InvalidApprover", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "receiver", "type": "address" } ], "name": "ERC20InvalidReceiver", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" } ], "name": "ERC20InvalidSender", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" } ], "name": "ERC20InvalidSpender", "type": "error" }, { "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": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "previousAdminRole", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "newAdminRole", "type": "bytes32" } ], "name": "RoleAdminChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" } ], "name": "RoleGranted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" } ], "name": "RoleRevoked", "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": [], "name": "DEFAULT_ADMIN_ROLE", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "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": "value", "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": "uint256", "name": "amount", "type": "uint256" } ], "name": "calculateRewards", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" } ], "name": "getRoleAdmin", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "grantRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "hasRole", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "mintRewards", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "rate", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "redeemNutz", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "redeemNutzTo", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "callerConfirmation", "type": "address" } ], "name": "renounceRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "revokeRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_minter", "type": "address" } ], "name": "setMinter", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_nutzAddress", "type": "address" } ], "name": "setNutzAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_rate", "type": "uint256" } ], "name": "setRate", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "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": "value", "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": "value", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" } ]
60806040526103e86008553480156200001757600080fd5b50604051806040016040528060068152602001652210273aba3d60d11b8152506040518060400160405280600581526020016422272aaa2d60d91b81525081600390816200006691906200020b565b5060046200007582826200020b565b505050620000aa7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e33620000b160201b60201c565b50620002d7565b60008281526005602090815260408083206001600160a01b038516845290915281205460ff166200015a5760008381526005602090815260408083206001600160a01b03861684529091529020805460ff19166001179055620001113390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45060016200015e565b5060005b92915050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200018f57607f821691505b602082108103620001b057634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000206576000816000526020600020601f850160051c81016020861015620001e15750805b601f850160051c820191505b818110156200020257828155600101620001ed565b5050505b505050565b81516001600160401b0381111562000227576200022762000164565b6200023f816200023884546200017a565b84620001b6565b602080601f8311600181146200027757600084156200025e5750858301515b600019600386901b1c1916600185901b17855562000202565b600085815260208120601f198616915b82811015620002a85788860151825594840194600190910190840162000287565b5085821015620002c75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61107080620002e76000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c806336568abe116100c3578063a217fddf1161007c578063a217fddf146102d8578063a9059cbb146102e0578063d3ea4350146102f3578063d547741f14610306578063dd62ed3e14610319578063fca3b5aa1461035257600080fd5b806336568abe1461025b5780636a20de921461026e5780636ca2473d1461028157806370a082311461029457806391d14854146102bd57806395d89b41146102d057600080fd5b806323b872dd1161011557806323b872dd146101e7578063248a9ca3146101fa5780632c4e722e1461021d5780632f2ff15d14610226578063313ce5671461023957806334fcf4371461024857600080fd5b806301ffc9a71461015d57806306cc3f991461018557806306fdde031461019a578063095ea7b3146101af57806318160ddd146101c25780631a3400c2146101d4575b600080fd5b61017061016b366004610df0565b610365565b60405190151581526020015b60405180910390f35b610198610193366004610e3d565b61039c565b005b6101a261050a565b60405161017c9190610e67565b6101706101bd366004610e3d565b61059c565b6002545b60405190815260200161017c565b6101986101e2366004610eb6565b6105b4565b6101706101f5366004610ed1565b61065a565b6101c6610208366004610f0d565b60009081526005602052604090206001015490565b6101c660085481565b610198610234366004610f26565b61067e565b6040516012815260200161017c565b610198610256366004610f0d565b6106a3565b610198610269366004610f26565b6106d3565b61019861027c366004610e3d565b61070b565b61019861028f366004610f0d565b61073f565b6101c66102a2366004610eb6565b6001600160a01b031660009081526020819052604090205490565b6101706102cb366004610f26565b61087c565b6101a26108a7565b6101c6600081565b6101706102ee366004610e3d565b6108b6565b6101c6610301366004610f0d565b6108c4565b610198610314366004610f26565b6108e1565b6101c6610327366004610f52565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610198610360366004610eb6565b610906565b60006001600160e01b03198216637965db0b60e01b148061039657506301ffc9a760e01b6001600160e01b03198316145b92915050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66103c68161095a565b6007546001600160a01b031661041a5760405162461bcd60e51b8152602060048201526014602482015273139d5d1e881859191c995cdcc81b9bdd081cd95d60621b60448201526064015b60405180910390fd5b336000908152602081905260409020548211156104705760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610411565b61047a3383610967565b6007546001600160a01b031663a9059cbb84610495856108c4565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156104e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105049190610f7c565b50505050565b60606003805461051990610f9e565b80601f016020809104026020016040519081016040528092919081815260200182805461054590610f9e565b80156105925780601f1061056757610100808354040283529160200191610592565b820191906000526020600020905b81548152906001019060200180831161057557829003601f168201915b5050505050905090565b6000336105aa81858561099d565b5060019392505050565b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6105de8161095a565b6007546001600160a01b0316156106375760405162461bcd60e51b815260206004820152601860248201527f4e75747a206164647265737320616c72656164792073657400000000000000006044820152606401610411565b50600780546001600160a01b0319166001600160a01b0392909216919091179055565b6000336106688582856109aa565b610673858585610a22565b506001949350505050565b6000828152600560205260409020600101546106998161095a565b6105048383610a81565b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6106cd8161095a565b50600855565b6001600160a01b03811633146106fc5760405163334bd91960e11b815260040160405180910390fd5b6107068282610b15565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66107358161095a565b6107068383610b82565b6007546001600160a01b031661078e5760405162461bcd60e51b8152602060048201526014602482015273139d5d1e881859191c995cdcc81b9bdd081cd95d60621b6044820152606401610411565b336000908152602081905260409020548111156107e45760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610411565b6107ee3382610967565b6007546001600160a01b031663a9059cbb33610809846108c4565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610854573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108789190610f7c565b5050565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606004805461051990610f9e565b6000336105aa818585610a22565b60006103e8600854836108d79190610fee565b6103969190611005565b6000828152600560205260409020600101546108fc8161095a565b6105048383610b15565b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6109308161095a565b6107067f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a683610a81565b6109648133610bb8565b50565b6001600160a01b03821661099157604051634b637e8f60e11b815260006004820152602401610411565b61087882600083610bf1565b6107068383836001610d1b565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146105045781811015610a1357604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610411565b61050484848484036000610d1b565b6001600160a01b038316610a4c57604051634b637e8f60e11b815260006004820152602401610411565b6001600160a01b038216610a765760405163ec442f0560e01b815260006004820152602401610411565b610706838383610bf1565b6000610a8d838361087c565b610b0d5760008381526005602090815260408083206001600160a01b03861684529091529020805460ff19166001179055610ac53390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4506001610396565b506000610396565b6000610b21838361087c565b15610b0d5760008381526005602090815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a4506001610396565b6001600160a01b038216610bac5760405163ec442f0560e01b815260006004820152602401610411565b61087860008383610bf1565b610bc2828261087c565b6108785760405163e2517d3f60e01b81526001600160a01b038216600482015260248101839052604401610411565b6001600160a01b038316610c1c578060026000828254610c119190611027565b90915550610c8e9050565b6001600160a01b03831660009081526020819052604090205481811015610c6f5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610411565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216610caa57600280548290039055610cc9565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610d0e91815260200190565b60405180910390a3505050565b6001600160a01b038416610d455760405163e602df0560e01b815260006004820152602401610411565b6001600160a01b038316610d6f57604051634a1406b160e11b815260006004820152602401610411565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561050457826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610de291815260200190565b60405180910390a350505050565b600060208284031215610e0257600080fd5b81356001600160e01b031981168114610e1a57600080fd5b9392505050565b80356001600160a01b0381168114610e3857600080fd5b919050565b60008060408385031215610e5057600080fd5b610e5983610e21565b946020939093013593505050565b60006020808352835180602085015260005b81811015610e9557858101830151858201604001528201610e79565b506000604082860101526040601f19601f8301168501019250505092915050565b600060208284031215610ec857600080fd5b610e1a82610e21565b600080600060608486031215610ee657600080fd5b610eef84610e21565b9250610efd60208501610e21565b9150604084013590509250925092565b600060208284031215610f1f57600080fd5b5035919050565b60008060408385031215610f3957600080fd5b82359150610f4960208401610e21565b90509250929050565b60008060408385031215610f6557600080fd5b610f6e83610e21565b9150610f4960208401610e21565b600060208284031215610f8e57600080fd5b81518015158114610e1a57600080fd5b600181811c90821680610fb257607f821691505b602082108103610fd257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761039657610396610fd8565b60008261102257634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561039657610396610fd856fea2646970667358221220e6600d9374942c25e7f30a8583dd88bc02f9b8f048027e689ebfd1ba79bb9f5f64736f6c63430008160033