[ { "inputs": [ { "internalType": "address", "name": "_MAG", "type": "address" }, { "internalType": "address", "name": "_sMAG", "type": "address" }, { "internalType": "address", "name": "_bMAG", "type": "address" }, { "internalType": "address", "name": "_staking", "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": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "inputs": [], "name": "MAG", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "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": "amount", "type": "uint256" } ], "name": "approve", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "bMAG", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "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": "convertMagToWMag", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "convertWMagToMag", "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": "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": "uint256", "name": "_amount", "type": "uint256" } ], "name": "deposit", "outputs": [], "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": "index", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "refill", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "sMAG", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "staking", "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": [ { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "withdraw", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]
60806040523480156200001157600080fd5b50604051620015b3380380620015b3833981810160405260808110156200003757600080fd5b50805160208083015160408085015160609095015181518083018352600b81526a57726170706564204d414760a81b81860190815283518085019094526004845263774d414760e01b9584019590955280519596939593949193909291600991620000a5916003916200012f565b508151620000bb9060049060208501906200012f565b5060058054600680546001600160a01b039a8b166001600160a01b03199182161790915597891661010002610100600160a81b031960ff90941660ff1990921691909117929092169190911790555050600880549285169284169290921790915560078054919093169116179055620001db565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620001675760008555620001b2565b82601f106200018257805160ff1916838001178555620001b2565b82800160010185558215620001b2579182015b82811115620001b257825182559160200191906001019062000195565b50620001c0929150620001c4565b5090565b5b80821115620001c05760008155600101620001c5565b6113c880620001eb6000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c80634cf088d9116100b8578063a457c2d71161007c578063a457c2d714610341578063a9059cbb1461036d578063b6b55f2514610399578063ca9d07ba146103b6578063dd62ed3e146103d3578063eb81410d1461040157610137565b80634cf088d9146102e657806370a08231146102ee5780638e748c331461031457806395d89b4114610331578063a223a2771461033957610137565b80632986c0e5116100ff5780632986c0e51461026d5780632e1a7d4d14610275578063313ce5671461029457806339509351146102b25780634c4be8a6146102de57610137565b806306fdde031461013c578063095ea7b3146101b957806318160ddd146101f95780631e3741571461021357806323b872dd14610237575b600080fd5b61014461041e565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017e578181015183820152602001610166565b50505050905090810190601f1680156101ab5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101e5600480360360408110156101cf57600080fd5b506001600160a01b0381351690602001356104b4565b604080519115158252519081900360200190f35b6102016104cb565b60408051918252519081900360200190f35b61021b6104d1565b604080516001600160a01b039092168252519081900360200190f35b6101e56004803603606081101561024d57600080fd5b506001600160a01b038135811691602081013590911690604001356104e0565b610201610549565b6102926004803603602081101561028b57600080fd5b50356105ca565b005b61029c61066e565b6040805160ff9092168252519081900360200190f35b6101e5600480360360408110156102c857600080fd5b506001600160a01b038135169060200135610677565b61021b6106ad565b61021b6106bc565b6102016004803603602081101561030457600080fd5b50356001600160a01b03166106cb565b6102016004803603602081101561032a57600080fd5b50356106e6565b610144610711565b61021b610772565b6101e56004803603604081101561035757600080fd5b506001600160a01b038135169060200135610786565b6101e56004803603604081101561038357600080fd5b506001600160a01b0381351690602001356107d5565b610292600480360360208110156103af57600080fd5b50356107e2565b610292600480360360208110156103cc57600080fd5b503561088d565b610201600480360360408110156103e957600080fd5b506001600160a01b0381358116916020013516610920565b6102016004803603602081101561041757600080fd5b503561094b565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104aa5780601f1061047f576101008083540402835291602001916104aa565b820191906000526020600020905b81548152906001019060200180831161048d57829003601f168201915b5050505050905090565b60006104c1338484610970565b5060015b92915050565b60025490565b6008546001600160a01b031681565b60006104ed848484610a5c565b61053f843361053a856040518060600160405280602881526020016112dc602891396001600160a01b038a1660009081526001602090815260408083203384529091529020549190610bb7565b610970565b5060019392505050565b6000600560019054906101000a90046001600160a01b03166001600160a01b0316632986c0e56040518163ffffffff1660e01b815260040160206040518083038186803b15801561059957600080fd5b505afa1580156105ad573d6000803e3d6000fd5b505050506040513d60208110156105c357600080fd5b5051905090565b6105d43382610c4e565b60006105df826106e6565b90506105ea81610d4a565b6006546040805163a9059cbb60e01b81523360048201526024810184905290516001600160a01b039092169163a9059cbb916044808201926020929091908290030181600087803b15801561063e57600080fd5b505af1158015610652573d6000803e3d6000fd5b505050506040513d602081101561066857600080fd5b50505050565b60055460ff1690565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916104c191859061053a9086610e44565b6006546001600160a01b031681565b6007546001600160a01b031681565b6001600160a01b031660009081526020819052604090205490565b60006104c56106f361066e565b60ff16600a0a61070b610704610549565b8590610ea5565b90610efe565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104aa5780601f1061047f576101008083540402835291602001916104aa565b60055461010090046001600160a01b031681565b60006104c1338461053a8560405180606001604052806025815260200161136e602591393360009081526001602090815260408083206001600160a01b038d1684529091529020549190610bb7565b60006104c1338484610a5c565b600654604080516323b872dd60e01b81523360048201523060248201526044810184905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b15801561083c57600080fd5b505af1158015610850573d6000803e3d6000fd5b505050506040513d602081101561086657600080fd5b50610872905081610f40565b600061087d8261094b565b90506108893382611091565b5050565b600654604080516323b872dd60e01b81523360048201523060248201526044810184905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b1580156108e757600080fd5b505af11580156108fb573d6000803e3d6000fd5b505050506040513d602081101561091157600080fd5b5061091d905081610f40565b50565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60006104c5610958610549565b61070b61096361066e565b859060ff16600a0a610ea5565b6001600160a01b0383166109b55760405162461bcd60e51b815260040180806020018281038252602481526020018061134a6024913960400191505060405180910390fd5b6001600160a01b0382166109fa5760405162461bcd60e51b81526004018080602001828103825260228152602001806112736022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610aa15760405162461bcd60e51b81526004018080602001828103825260258152602001806113256025913960400191505060405180910390fd5b6001600160a01b038216610ae65760405162461bcd60e51b815260040180806020018281038252602381526020018061122e6023913960400191505060405180910390fd5b610af1838383611181565b610b2e81604051806060016040528060268152602001611295602691396001600160a01b0386166000908152602081905260409020549190610bb7565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610b5d9082610e44565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610c465760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c0b578181015183820152602001610bf3565b50505050905090810190601f168015610c385780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038216610c935760405162461bcd60e51b81526004018080602001828103825260218152602001806113046021913960400191505060405180910390fd5b610c9f82600083611181565b610cdc81604051806060016040528060228152602001611251602291396001600160a01b0385166000908152602081905260409020549190610bb7565b6001600160a01b038316600090815260208190526040902055600254610d029082611186565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6005546007546040805163095ea7b360e01b81526001600160a01b0392831660048201526024810185905290516101009093049091169163095ea7b3916044808201926020929091908290030181600087803b158015610da957600080fd5b505af1158015610dbd573d6000803e3d6000fd5b505050506040513d6020811015610dd357600080fd5b5050600754604080516327afaa2360e21b8152600481018490526001602482015290516001600160a01b0390921691639ebea88c9160448082019260009290919082900301818387803b158015610e2957600080fd5b505af1158015610e3d573d6000803e3d6000fd5b5050505050565b600082820183811015610e9e576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600082610eb4575060006104c5565b82820282848281610ec157fe5b0414610e9e5760405162461bcd60e51b81526004018080602001828103825260218152602001806112bb6021913960400191505060405180910390fd5b6000610e9e83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506111c8565b6006546007546040805163095ea7b360e01b81526001600160a01b039283166004820152602481018590529051919092169163095ea7b39160448083019260209291908290030181600087803b158015610f9957600080fd5b505af1158015610fad573d6000803e3d6000fd5b505050506040513d6020811015610fc357600080fd5b505060075460408051637acb775760e01b81526004810184905230602482015290516001600160a01b0390921691637acb7757916044808201926020929091908290030181600087803b15801561101957600080fd5b505af115801561102d573d6000803e3d6000fd5b505050506040513d602081101561104357600080fd5b505060075460408051630f41a04d60e11b815230600482015290516001600160a01b0390921691631e83409a9160248082019260009290919082900301818387803b158015610e2957600080fd5b6001600160a01b0382166110ec576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6110f7308383611181565b6002546111049082610e44565b6002556001600160a01b03821660009081526020819052604090205461112a9082610e44565b6001600160a01b038316600081815260208181526040918290209390935580518481529051919230927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b505050565b6000610e9e83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610bb7565b600081836112175760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610c0b578181015183820152602001610bf3565b50600083858161122357fe5b049594505050505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212201b2b2f32765146cf7e69228e4ce8b2949de070100020f2e8b2383c043dcf386e64736f6c634300070500330000000000000000000000001d60109178c48e4a937d8ab71699d8ebb6f7c5de0000000000000000000000001eda3ef892ab5521f4fcd5cee4825f57b48ed96100000000000000000000000081dae2083e4c4e7f7ef117e3e3ef4969c567e732000000000000000000000000587cb56d9d52c80267ca36c774ececa98deec831