Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x8d435A46C143a08bC99af0967a550e580d8ff879
Balance 0 ETH
Nonce 1
Code Size 10682 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

10682 bytes
0x608060405234801561000f575f80fd5b50600436106101d8575f3560e01c806392f6576e11610102578063c894e1e5116100a0578063ed7bec991161006f578063ed7bec991461056a578063efdcd97414610588578063f24b8721146105a4578063f2fde38b146105c0576101d8565b8063c894e1e5146104e4578063d6b2eee814610500578063dd62ed3e1461051e578063e58306f91461054e576101d8565b8063a457c2d7116100dc578063a457c2d714610436578063a9059cbb14610466578063b3f0067414610496578063c582323b146104b4576101d8565b806392f6576e146103de57806395d89b41146103fc5780639cb88aa61461041a576101d8565b8063351bf5181161017a57806370a082311161014957806370a082311461036a578063715018a61461039a5780638da5cb5b146103a45780638ebfc796146103c2576101d8565b8063351bf518146102d057806339509351146102ee5780633f4218e01461031e57806342966c681461034e576101d8565b80631e458bee116101b65780631e458bee1461024857806323b872dd14610264578063313ce5671461029457806332cb6b0c146102b2576101d8565b806306fdde03146101dc578063095ea7b3146101fa57806318160ddd1461022a575b5f80fd5b6101e46105dc565b6040516101f19190611bb0565b60405180910390f35b610214600480360381019061020f9190611c61565b61066c565b6040516102219190611cb9565b60405180910390f35b61023261068e565b60405161023f9190611ce1565b60405180910390f35b610262600480360381019061025d9190611d2d565b610697565b005b61027e60048036038101906102799190611d7d565b61086e565b60405161028b9190611cb9565b60405180910390f35b61029c61089c565b6040516102a99190611de8565b60405180910390f35b6102ba6108a4565b6040516102c79190611ce1565b60405180910390f35b6102d86108b6565b6040516102e59190611ce1565b60405180910390f35b61030860048036038101906103039190611c61565b6108bc565b6040516103159190611cb9565b60405180910390f35b61033860048036038101906103339190611e01565b6108f2565b6040516103459190611cb9565b60405180910390f35b61036860048036038101906103639190611e2c565b61090f565b005b610384600480360381019061037f9190611e01565b61091c565b6040516103919190611ce1565b60405180910390f35b6103a2610961565b005b6103ac610974565b6040516103b99190611e66565b60405180910390f35b6103dc60048036038101906103d79190611ea9565b61099c565b005b6103e6610a4a565b6040516103f39190611ce1565b60405180910390f35b610404610a50565b6040516104119190611bb0565b60405180910390f35b610434600480360381019061042f9190611e01565b610ae0565b005b610450600480360381019061044b9190611c61565b610b6e565b60405161045d9190611cb9565b60405180910390f35b610480600480360381019061047b9190611c61565b610be3565b60405161048d9190611cb9565b60405180910390f35b61049e610c05565b6040516104ab9190611e66565b60405180910390f35b6104ce60048036038101906104c99190611ee7565b610c2a565b6040516104db9190611cb9565b60405180910390f35b6104fe60048036038101906104f99190611e2c565b610c47565b005b610508610cd5565b6040516105159190611e66565b60405180910390f35b61053860048036038101906105339190611f12565b610cfa565b6040516105459190611ce1565b60405180910390f35b61056860048036038101906105639190611c61565b610d7c565b005b610572610eca565b60405161057f9190611e66565b60405180910390f35b6105a2600480360381019061059d9190611e01565b610eef565b005b6105be60048036038101906105b99190611e01565b610feb565b005b6105da60048036038101906105d59190611e01565b611079565b005b6060600380546105eb90611f7d565b80601f016020809104026020016040519081016040528092919081815260200182805461061790611f7d565b80156106625780601f1061063957610100808354040283529160200191610662565b820191905f5260205f20905b81548152906001019060200180831161064557829003601f168201915b5050505050905090565b5f806106766110fb565b9050610683818585611102565b600191505092915050565b5f600254905090565b60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610726576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161071d90611ff7565b60405180910390fd5b600b5f8281526020019081526020015f205f9054906101000a900460ff1615610784576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077b9061205f565b60405180910390fd5b6df684df56c3e01bc6c732000000008261079c61068e565b6107a691906120aa565b11156107e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107de90612127565b60405180910390fd5b6001600b5f8381526020019081526020015f205f6101000a81548160ff02191690831515021790555061081a83836112c5565b808373ffffffffffffffffffffffffffffffffffffffff167feb604b937638c3b6fd2f700ee7d1574a431517bf65e429792371a6e91c7f5f99846040516108619190611ce1565b60405180910390a3505050565b5f806108786110fb565b9050610885858285611413565b61089085858561149e565b60019150509392505050565b5f6012905090565b6df684df56c3e01bc6c7320000000081565b60065481565b5f806108c66110fb565b90506108e78185856108d88589610cfa565b6108e291906120aa565b611102565b600191505092915050565b6008602052805f5260405f205f915054906101000a900460ff1681565b61091933826115c6565b50565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610969611789565b6109725f611807565b565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6109a4611789565b8060085f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9f1eaee9ad9cb68284f0dc523aa42c465ed33b53f8da7fc7294ccea47358bbdf82604051610a3e9190611cb9565b60405180910390a25050565b6107d081565b606060048054610a5f90611f7d565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8b90611f7d565b8015610ad65780601f10610aad57610100808354040283529160200191610ad6565b820191905f5260205f20905b815481529060010190602001808311610ab957829003601f168201915b5050505050905090565b610ae8611789565b8060095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f8a43bdb543d9f2c642eead835ca81442d42adfa55df08464d58a8845740b6c2c60405160405180910390a250565b5f80610b786110fb565b90505f610b858286610cfa565b905083811015610bca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc1906121b5565b60405180910390fd5b610bd78286868403611102565b60019250505092915050565b5f80610bed6110fb565b9050610bfa81858561149e565b600191505092915050565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b602052805f5260405f205f915054906101000a900460ff1681565b610c4f611789565b6107d0811115610c94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8b9061221d565b60405180910390fd5b806006819055507fdd72d2879718489eb363ba6099239f89d49542612862c71545503d35cfddda4681604051610cca9190611ce1565b60405180910390a150565b60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0290612285565b60405180910390fd5b6df684df56c3e01bc6c7320000000081610e2361068e565b610e2d91906120aa565b1115610e6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6590612127565b60405180910390fd5b610e7882826112c5565b8173ffffffffffffffffffffffffffffffffffffffff167fb95721a138d27da82cf85d0a1081e8753ff7229d98779aaf27125068c1d5f90a82604051610ebe9190611ce1565b60405180910390a25050565b600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610ef7611789565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5c906122ed565b60405180910390fd5b8060075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f647672599d3468abcfa241a13c9e3d34383caadb5cc80fb67c3cdfcd5f78605960405160405180910390a250565b610ff3611789565b80600a5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fddca925e99409ca9c33f30aa2faaa3a9f668e30c20542aca367a7b92178292d160405160405180910390a250565b611081611789565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036110ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e69061237b565b60405180910390fd5b6110f881611807565b50565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611170576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116790612409565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036111de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d590612497565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516112b89190611ce1565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611333576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132a906124ff565b60405180910390fd5b61133e5f83836118ca565b8060025f82825461134f91906120aa565b92505081905550805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508173ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516113fc9190611ce1565b60405180910390a361140f5f83836118cf565b5050565b5f61141e8484610cfa565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114611498578181101561148a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148190612567565b60405180910390fd5b6114978484848403611102565b5b50505050565b60085f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680611539575060085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b8061154557505f600654145b1561155a576115558383836118d4565b6115c1565b5f6127106006548361156c9190612585565b61157691906125f3565b90505f81836115859190612623565b90506115b38560075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846118d4565b6115be8585836118d4565b50505b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611634576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162b906126c6565b60405180910390fd5b61163f825f836118ca565b5f805f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156116c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b990612754565b60405180910390fd5b8181035f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508160025f82825403925050819055505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516117719190611ce1565b60405180910390a3611784835f846118cf565b505050565b6117916110fb565b73ffffffffffffffffffffffffffffffffffffffff166117af610974565b73ffffffffffffffffffffffffffffffffffffffff1614611805576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fc906127bc565b60405180910390fd5b565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b505050565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611942576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119399061284a565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036119b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a7906128d8565b60405180910390fd5b6119bb8383836118ca565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611a3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3590612966565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611b279190611ce1565b60405180910390a3611b3a8484846118cf565b50505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f611b8282611b40565b611b8c8185611b4a565b9350611b9c818560208601611b5a565b611ba581611b68565b840191505092915050565b5f6020820190508181035f830152611bc88184611b78565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611bfd82611bd4565b9050919050565b611c0d81611bf3565b8114611c17575f80fd5b50565b5f81359050611c2881611c04565b92915050565b5f819050919050565b611c4081611c2e565b8114611c4a575f80fd5b50565b5f81359050611c5b81611c37565b92915050565b5f8060408385031215611c7757611c76611bd0565b5b5f611c8485828601611c1a565b9250506020611c9585828601611c4d565b9150509250929050565b5f8115159050919050565b611cb381611c9f565b82525050565b5f602082019050611ccc5f830184611caa565b92915050565b611cdb81611c2e565b82525050565b5f602082019050611cf45f830184611cd2565b92915050565b5f819050919050565b611d0c81611cfa565b8114611d16575f80fd5b50565b5f81359050611d2781611d03565b92915050565b5f805f60608486031215611d4457611d43611bd0565b5b5f611d5186828701611c1a565b9350506020611d6286828701611c4d565b9250506040611d7386828701611d19565b9150509250925092565b5f805f60608486031215611d9457611d93611bd0565b5b5f611da186828701611c1a565b9350506020611db286828701611c1a565b9250506040611dc386828701611c4d565b9150509250925092565b5f60ff82169050919050565b611de281611dcd565b82525050565b5f602082019050611dfb5f830184611dd9565b92915050565b5f60208284031215611e1657611e15611bd0565b5b5f611e2384828501611c1a565b91505092915050565b5f60208284031215611e4157611e40611bd0565b5b5f611e4e84828501611c4d565b91505092915050565b611e6081611bf3565b82525050565b5f602082019050611e795f830184611e57565b92915050565b611e8881611c9f565b8114611e92575f80fd5b50565b5f81359050611ea381611e7f565b92915050565b5f8060408385031215611ebf57611ebe611bd0565b5b5f611ecc85828601611c1a565b9250506020611edd85828601611e95565b9150509250929050565b5f60208284031215611efc57611efb611bd0565b5b5f611f0984828501611d19565b91505092915050565b5f8060408385031215611f2857611f27611bd0565b5b5f611f3585828601611c1a565b9250506020611f4685828601611c1a565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680611f9457607f821691505b602082108103611fa757611fa6611f50565b5b50919050565b7f4e6f7420627269646765206d696e7465720000000000000000000000000000005f82015250565b5f611fe1601183611b4a565b9150611fec82611fad565b602082019050919050565b5f6020820190508181035f83015261200e81611fd5565b9050919050565b7f416c72656164792070726f6365737365640000000000000000000000000000005f82015250565b5f612049601183611b4a565b915061205482612015565b602082019050919050565b5f6020820190508181035f8301526120768161203d565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6120b482611c2e565b91506120bf83611c2e565b92508282019050808211156120d7576120d661207d565b5b92915050565b7f45786365656473204d41585f535550504c5900000000000000000000000000005f82015250565b5f612111601283611b4a565b915061211c826120dd565b602082019050919050565b5f6020820190508181035f83015261213e81612105565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f61219f602583611b4a565b91506121aa82612145565b604082019050919050565b5f6020820190508181035f8301526121cc81612193565b9050919050565b7f46656520746f6f206869676800000000000000000000000000000000000000005f82015250565b5f612207600c83611b4a565b9150612212826121d3565b602082019050919050565b5f6020820190508181035f830152612234816121fb565b9050919050565b7f4e6f742061646d696e206d696e746572000000000000000000000000000000005f82015250565b5f61226f601083611b4a565b915061227a8261223b565b602082019050919050565b5f6020820190508181035f83015261229c81612263565b9050919050565b7f5a65726f206164647265737300000000000000000000000000000000000000005f82015250565b5f6122d7600c83611b4a565b91506122e2826122a3565b602082019050919050565b5f6020820190508181035f830152612304816122cb565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f612365602683611b4a565b91506123708261230b565b604082019050919050565b5f6020820190508181035f83015261239281612359565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f6123f3602483611b4a565b91506123fe82612399565b604082019050919050565b5f6020820190508181035f830152612420816123e7565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f612481602283611b4a565b915061248c82612427565b604082019050919050565b5f6020820190508181035f8301526124ae81612475565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f2061646472657373005f82015250565b5f6124e9601f83611b4a565b91506124f4826124b5565b602082019050919050565b5f6020820190508181035f830152612516816124dd565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f612551601d83611b4a565b915061255c8261251d565b602082019050919050565b5f6020820190508181035f83015261257e81612545565b9050919050565b5f61258f82611c2e565b915061259a83611c2e565b92508282026125a881611c2e565b915082820484148315176125bf576125be61207d565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6125fd82611c2e565b915061260883611c2e565b925082612618576126176125c6565b5b828204905092915050565b5f61262d82611c2e565b915061263883611c2e565b92508282039050818111156126505761264f61207d565b5b92915050565b7f45524332303a206275726e2066726f6d20746865207a65726f206164647265735f8201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b5f6126b0602183611b4a565b91506126bb82612656565b604082019050919050565b5f6020820190508181035f8301526126dd816126a4565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e5f8201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b5f61273e602283611b4a565b9150612749826126e4565b604082019050919050565b5f6020820190508181035f83015261276b81612732565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6127a6602083611b4a565b91506127b182612772565b602082019050919050565b5f6020820190508181035f8301526127d38161279a565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f612834602583611b4a565b915061283f826127da565b604082019050919050565b5f6020820190508181035f83015261286181612828565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f6128c2602383611b4a565b91506128cd82612868565b604082019050919050565b5f6020820190508181035f8301526128ef816128b6565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f612950602683611b4a565b915061295b826128f6565b604082019050919050565b5f6020820190508181035f83015261297d81612944565b905091905056fea26469706673582212204cc595ee53a39a6256f0f3a1170fdec528c6719d0a00f0d982e1d9fae3e8974064736f6c634300081a0033

Verified Source Code Partial Match

Compiler: v0.8.26+commit.8a97fa7a EVM: cancun Optimization: No
VizslaSwapETH.sol 696 lines
// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.9.0/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 amount) external returns (bool);
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.9.0/contracts/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.9.0/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.9.0/contracts/token/ERC20/ERC20.sol


// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;




/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the default value returned by this function, unless
     * it's overridden.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(address from, address to, uint256 amount) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.9.0/contracts/access/Ownable.sol


// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;


/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: eth.sol


pragma solidity ^0.8.0;



/// @title VizslaSwap Token (Ethereum Version)
/// @notice Bridge-compatible ERC20 version of VizslaSwap
contract VizslaSwapETH is ERC20, Ownable {
    uint256 public constant MAX_SUPPLY = 5_000_000_000_000_000 ether;

    uint256 public transferFeeRate = 0; // Default 0%
    uint256 public constant MAX_FEE_RATE = 2000; // 20%
    address public feeReceiver;

    mapping(address => bool) public isFeeExempt;

    address public bridgeMinter;
    address public adminMinter;

    mapping(bytes32 => bool) public processedBridges;

    event BridgeMinterChanged(address indexed newMinter);
    event AdminMinterChanged(address indexed newAdmin);
    event FeeRateChanged(uint256 newRate);
    event FeeReceiverChanged(address indexed newReceiver);
    event FeeExemptionChanged(address indexed account, bool isExempt);
    event BridgeMinted(address indexed to, uint256 amount, bytes32 indexed bridgeTxId);
    event AdminMinted(address indexed to, uint256 amount);

    constructor(address initialOwner)
        ERC20("VizslaSwap", "VIZSLASWAP")
    {
        _transferOwnership(initialOwner);
        feeReceiver = initialOwner;
    }

    modifier onlyBridgeMinter() {
        require(msg.sender == bridgeMinter, "Not bridge minter");
        _;
    }

    modifier onlyAdminMinter() {
        require(msg.sender == adminMinter, "Not admin minter");
        _;
    }

    function setBridgeMinter(address _minter) external onlyOwner {
        bridgeMinter = _minter;
        emit BridgeMinterChanged(_minter);
    }

    function setAdminMinter(address _admin) external onlyOwner {
        adminMinter = _admin;
        emit AdminMinterChanged(_admin);
    }

    function setFeeReceiver(address _receiver) external onlyOwner {
        require(_receiver != address(0), "Zero address");
        feeReceiver = _receiver;
        emit FeeReceiverChanged(_receiver);
    }

    function setTransferFeeRate(uint256 _rate) external onlyOwner {
        require(_rate <= MAX_FEE_RATE, "Fee too high");
        transferFeeRate = _rate;
        emit FeeRateChanged(_rate);
    }

    function setFeeExempt(address account, bool exempt) external onlyOwner {
        isFeeExempt[account] = exempt;
        emit FeeExemptionChanged(account, exempt);
    }

    /// @notice Mint from bridge (used by relayer)
    function mint(address to, uint256 amount, bytes32 bridgeTxId) external onlyBridgeMinter {
        require(!processedBridges[bridgeTxId], "Already processed");
        require(totalSupply() + amount <= MAX_SUPPLY, "Exceeds MAX_SUPPLY");
        processedBridges[bridgeTxId] = true;
        _mint(to, amount);
        emit BridgeMinted(to, amount, bridgeTxId);
    }

    /// @notice Admin direct mint (not bridge-related)
    function adminMint(address to, uint256 amount) external onlyAdminMinter {
        require(totalSupply() + amount <= MAX_SUPPLY, "Exceeds MAX_SUPPLY");
        _mint(to, amount);
        emit AdminMinted(to, amount);
    }

    function burn(uint256 amount) external {
        _burn(msg.sender, amount);
    }

    function _transfer(address sender, address recipient, uint256 amount) internal override {
        if (isFeeExempt[sender] || isFeeExempt[recipient] || transferFeeRate == 0) {
            super._transfer(sender, recipient, amount);
        } else {
            uint256 feeAmount = (amount * transferFeeRate) / 10000;
            uint256 sendAmount = amount - feeAmount;
            super._transfer(sender, feeReceiver, feeAmount);
            super._transfer(sender, recipient, sendAmount);
        }
    }
}

Read Contract

MAX_FEE_RATE 0x92f6576e → uint256
MAX_SUPPLY 0x32cb6b0c → uint256
adminMinter 0xed7bec99 → address
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
bridgeMinter 0xd6b2eee8 → address
decimals 0x313ce567 → uint8
feeReceiver 0xb3f00674 → address
isFeeExempt 0x3f4218e0 → bool
name 0x06fdde03 → string
owner 0x8da5cb5b → address
processedBridges 0xc582323b → bool
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
transferFeeRate 0x351bf518 → uint256

Write Contract 15 functions

These functions modify contract state and require a wallet transaction to execute.

adminMint 0xe58306f9
address to
uint256 amount
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
burn 0x42966c68
uint256 amount
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
mint 0x1e458bee
address to
uint256 amount
bytes32 bridgeTxId
renounceOwnership 0x715018a6
No parameters
setAdminMinter 0xf24b8721
address _admin
setBridgeMinter 0x9cb88aa6
address _minter
setFeeExempt 0x8ebfc796
address account
bool exempt
setFeeReceiver 0xefdcd974
address _receiver
setTransferFeeRate 0xc894e1e5
uint256 _rate
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner

Recent Transactions

No transactions found for this address