[ { "inputs": [ { "internalType": "address", "name": "_classicDGTokenAddress", "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": "DOMAIN_SEPARATOR", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "PERMIT_TYPEHASH", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "RATIO", "outputs": [ { "internalType": "uint16", "name": "", "type": "uint16" } ], "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": [ { "internalType": "address", "name": "_account", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "classicDG", "outputs": [ { "internalType": "contract IClassicDGToken", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_classicAmountToReceive", "type": "uint256" } ], "name": "goClassic", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_classicAmountToDeposit", "type": "uint256" } ], "name": "goLight", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "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": "_value", "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": [], "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" } ]
60a06040523480156200001157600080fd5b5060405162000f8838038062000f888339810160408190526200003491620002a8565b604080518082018252600f81526e446563656e7472616c2047616d657360881b602080830191825283518085019094526002845261444760f01b908401528151919291620000859160009162000202565b5080516200009b90600190602084019062000202565b50506002805460ff19166012179055506001600160a01b0381166080527f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f620000e362000168565b805160209182012060408051808201825260018152603160f81b90840152805192830193909352918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160408051601f1981840301815291905280516020909101206007555062000317565b6060600080546200017990620002da565b80601f0160208091040260200160405190810160405280929190818152602001828054620001a790620002da565b8015620001f85780601f10620001cc57610100808354040283529160200191620001f8565b820191906000526020600020905b815481529060010190602001808311620001da57829003601f168201915b5050505050905090565b8280546200021090620002da565b90600052602060002090601f0160209004810192826200023457600085556200027f565b82601f106200024f57805160ff19168380011785556200027f565b828001600101855582156200027f579182015b828111156200027f57825182559160200191906001019062000262565b506200028d92915062000291565b5090565b5b808211156200028d576000815560010162000292565b600060208284031215620002bb57600080fd5b81516001600160a01b0381168114620002d357600080fd5b9392505050565b600181811c90821680620002ef57607f821691505b602082108114156200031157634e487b7160e01b600052602260045260246000fd5b50919050565b608051610c4762000341600039600081816101d50152818161040101526104dc0152610c476000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80635748f4e9116100a257806395d89b411161007157806395d89b4114610274578063a9059cbb1461027c578063d35ab3f11461028f578063d505accf146102a2578063dd62ed3e146102b557600080fd5b80635748f4e9146101d057806359e741d21461020f57806370a082311461022b5780637ecebe001461025457600080fd5b8063249a7d82116100de578063249a7d821461017657806330adf81f1461018b578063313ce567146101b25780633644e515146101c757600080fd5b806306fdde0314610110578063095ea7b31461012e57806318160ddd1461015157806323b872dd14610163575b600080fd5b6101186102ee565b604051610125919061097d565b60405180910390f35b61014161013c3660046109ee565b610380565b6040519015158152602001610125565b6003545b604051908152602001610125565b610141610171366004610a18565b610396565b610189610184366004610a54565b6103e5565b005b6101557f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60025460405160ff9091168152602001610125565b61015560075481565b6101f77f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610125565b6102186103e881565b60405161ffff9091168152602001610125565b610155610239366004610a6d565b6001600160a01b031660009081526004602052604090205490565b610155610262366004610a6d565b60066020526000908152604090205481565b61011861049e565b61014161028a3660046109ee565b6104ad565b61018961029d366004610a54565b6104ba565b6101896102b0366004610a8f565b610576565b6101556102c3366004610b02565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b6060600080546102fd90610b35565b80601f016020809104026020016040519081016040528092919081815260200182805461032990610b35565b80156103765780601f1061034b57610100808354040283529160200191610376565b820191906000526020600020905b81548152906001019060200180831161035957829003601f168201915b5050505050905090565b600061038d33848461078e565b50600192915050565b6001600160a01b03831660009081526005602090815260408083203380855292528220546103d09186916103cb908690610b86565b61078e565b6103db8484846107f0565b5060019392505050565b60405163a9059cbb60e01b8152336004820152602481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a9059cbb90604401602060405180830381600087803b15801561044d57600080fd5b505af1158015610461573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104859190610b9d565b5061049b336104966103e884610bbf565b610898565b50565b6060600180546102fd90610b35565b600061038d3384846107f0565b6040516323b872dd60e01b8152336004820152306024820152604481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd90606401602060405180830381600087803b15801561052857600080fd5b505af115801561053c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105609190610b9d565b5061049b336105716103e884610bbf565b61091f565b428410156105cb5760405162461bcd60e51b815260206004820152601a60248201527f45524332303a205045524d49545f43414c4c5f4558504952454400000000000060448201526064015b60405180910390fd5b6007546001600160a01b038816600090815260066020526040812080549192917f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918b918b918b91908761061e83610bde565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810187905260e0016040516020818303038152906040528051906020012060405160200161069792919061190160f01b81526002810192909252602282015260420190565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa158015610702573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906107385750886001600160a01b0316816001600160a01b0316145b6107785760405162461bcd60e51b8152602060048201526011602482015270494e56414c49445f5349474e415455524560781b60448201526064016105c2565b61078389898961078e565b505050505050505050565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316600090815260046020526040902054610814908290610b86565b6001600160a01b038085166000908152600460205260408082209390935590841681522054610844908290610bf9565b6001600160a01b0380841660008181526004602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906107e39085815260200190565b6001600160a01b0382166000908152600460205260409020546108bc908290610b86565b6001600160a01b0383166000818152600460205260408082209390935560038054859003905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906109139085815260200190565b60405180910390a35050565b8060035461092d9190610bf9565b6003556001600160a01b0382166000818152600460209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610913565b600060208083528351808285015260005b818110156109aa5785810183015185820160400152820161098e565b818111156109bc576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b03811681146109e957600080fd5b919050565b60008060408385031215610a0157600080fd5b610a0a836109d2565b946020939093013593505050565b600080600060608486031215610a2d57600080fd5b610a36846109d2565b9250610a44602085016109d2565b9150604084013590509250925092565b600060208284031215610a6657600080fd5b5035919050565b600060208284031215610a7f57600080fd5b610a88826109d2565b9392505050565b600080600080600080600060e0888a031215610aaa57600080fd5b610ab3886109d2565b9650610ac1602089016109d2565b95506040880135945060608801359350608088013560ff81168114610ae557600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215610b1557600080fd5b610b1e836109d2565b9150610b2c602084016109d2565b90509250929050565b600181811c90821680610b4957607f821691505b60208210811415610b6a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082821015610b9857610b98610b70565b500390565b600060208284031215610baf57600080fd5b81518015158114610a8857600080fd5b6000816000190483118215151615610bd957610bd9610b70565b500290565b6000600019821415610bf257610bf2610b70565b5060010190565b60008219821115610c0c57610c0c610b70565b50019056fea26469706673582212207a3b5b0c330f51eeab5b8ff04f4ca87febbd8f73b5aa2ec84c3d195ab39158d264736f6c63430008090033000000000000000000000000ee06a81a695750e71a662b51066f2c74cf4478a0