Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0xAc2Ea6f32ab535e5842f421f9f33d17a5fF63888
Balance 0.006025 ETH
Nonce 2
Code Size 19679 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

19679 bytes
0x6080604052600436106103bc5760003560e01c80637b510fe8116101f2578063c02466681161010d578063e01af92c116100a0578063f1b234ad1161006f578063f1b234ad14610c2c578063f2fde38b14610c4c578063f4571c4914610c6c578063f69e204614610c8c57600080fd5b8063e01af92c14610bc0578063e2f4560514610be0578063e4956ce214610bf6578063ebbf1ace14610c1657600080fd5b8063c9567bf9116100dc578063c9567bf914610b18578063d2fcc00114610b2d578063d4c989d314610b4d578063dd62ed3e14610b6d57600080fd5b8063c024666814610a98578063c3033aeb14610ab8578063c6af580b14610ad8578063c705c56914610af857600080fd5b8063a680e0bc11610185578063aafd847a11610154578063aafd847a14610a1c578063b62496f514610a3c578063b80b6e8914610a6c578063bf56b37114610a8257600080fd5b8063a680e0bc1461099c578063a8b9d240146109bc578063a9059cbb146109dc578063aa4e8c4a146109fc57600080fd5b806395d89b41116101c157806395d89b41146109275780639a7a23d61461093c5780639e252f001461095c578063a457c2d71461097c57600080fd5b80637b510fe81461085d578063870bd30b146108bc5780638da5cb5b146108dc5780638e1269441461090757600080fd5b806349bd5a5e116102e2578063658c27a9116102755780636ddd1713116102445780636ddd1713146107d057806370a08231146107ef578063715018a614610832578063744d15911461084757600080fd5b8063658c27a91461070457806365b8dbc01461074a57806368c51e351461076a5780636dd3d39f1461078a57600080fd5b806357777d31116102b157806357777d31146106985780635937ea6c146106ae5780635b65b9ab146106c45780635e843ad2146106e457600080fd5b806349bd5a5e146105f05780634e71d92d1461061d5780634fbee19314610632578063537df3b61461067857600080fd5b806327ce01471161035a57806333f3d6281161032957806333f3d6281461057a57806337eb15281461059a57806339509351146105b05780634838d165146105d057600080fd5b806327ce0147146104f05780632c1f5216146105105780632f4504ae1461053d578063313ce5671461055e57600080fd5b80630dd87157116103965780630dd87157146104455780631694505e1461046957806318160ddd146104bb57806323b872dd146104d057600080fd5b80630483f7a0146103c857806306fdde03146103ea578063095ea7b31461041557600080fd5b366103c357005b600080fd5b3480156103d457600080fd5b506103e86103e3366004614695565b610ca1565b005b3480156103f657600080fd5b506103ff610db9565b60405161040c91906146ce565b60405180910390f35b34801561042157600080fd5b50610435610430366004614741565b610e4b565b604051901515815260200161040c565b34801561045157600080fd5b5061045b600b5481565b60405190815260200161040c565b34801561047557600080fd5b506018546104969073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161040c565b3480156104c757600080fd5b50600e5461045b565b3480156104dc57600080fd5b506104356104eb36600461476d565b610e61565b3480156104fc57600080fd5b5061045b61050b3660046147ae565b610f4e565b34801561051c57600080fd5b506017546104969073ffffffffffffffffffffffffffffffffffffffff1681565b34801561054957600080fd5b50600d54610435906301000000900460ff1681565b34801561056a57600080fd5b506040516012815260200161040c565b34801561058657600080fd5b506103e8610595366004614741565b610fea565b3480156105a657600080fd5b5061045b60095481565b3480156105bc57600080fd5b506104356105cb366004614741565b611107565b3480156105dc57600080fd5b506103e86105eb3660046147ae565b61114b565b3480156105fc57600080fd5b506019546104969073ffffffffffffffffffffffffffffffffffffffff1681565b34801561062957600080fd5b506103e86112ab565b34801561063e57600080fd5b5061043561064d3660046147ae565b73ffffffffffffffffffffffffffffffffffffffff1660009081526013602052604090205460ff1690565b34801561068457600080fd5b506103e86106933660046147ae565b61135d565b3480156106a457600080fd5b5061045b601a5481565b3480156106ba57600080fd5b5061045b60065481565b3480156106d057600080fd5b506103e86106df3660046147d2565b6114b9565b3480156106f057600080fd5b506103e86106ff3660046147fe565b611566565b34801561071057600080fd5b5061043561071f3660046147ae565b73ffffffffffffffffffffffffffffffffffffffff166000908152601d602052604090205460ff1690565b34801561075657600080fd5b506103e86107653660046147ae565b611650565b34801561077657600080fd5b506103e8610785366004614840565b611a0e565b34801561079657600080fd5b506104356107a53660046147ae565b73ffffffffffffffffffffffffffffffffffffffff166000908152601e602052604090205460ff1690565b3480156107dc57600080fd5b50600d5461043590610100900460ff1681565b3480156107fb57600080fd5b5061045b61080a3660046147ae565b73ffffffffffffffffffffffffffffffffffffffff1660009081526011602052604090205490565b34801561083e57600080fd5b506103e8611b33565b34801561085357600080fd5b5061045b601b5481565b34801561086957600080fd5b5061087d6108783660046147ae565b611bc0565b6040805173ffffffffffffffffffffffffffffffffffffffff90961686526020860194909452928401919091526060830152608082015260a00161040c565b3480156108c857600080fd5b50600d546104359062010000900460ff1681565b3480156108e857600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff16610496565b34801561091357600080fd5b506103e8610922366004614859565b611c70565b34801561093357600080fd5b506103ff611d50565b34801561094857600080fd5b506103e8610957366004614695565b611d5f565b34801561096857600080fd5b506103e8610977366004614840565b611e98565b34801561098857600080fd5b50610435610997366004614741565b611f46565b3480156109a857600080fd5b5061045b6109b73660046147ae565b612020565b3480156109c857600080fd5b5061045b6109d73660046147ae565b612079565b3480156109e857600080fd5b506104356109f7366004614741565b6120d2565b348015610a0857600080fd5b506103e8610a17366004614840565b6120df565b348015610a2857600080fd5b5061045b610a373660046147ae565b6121de565b348015610a4857600080fd5b50610435610a573660046147ae565b60146020526000908152604090205460ff1681565b348015610a7857600080fd5b5061045b60085481565b348015610a8e57600080fd5b5061045b600c5481565b348015610aa457600080fd5b506103e8610ab3366004614695565b612237565b348015610ac457600080fd5b506103e8610ad33660046148ad565b6123fe565b348015610ae457600080fd5b506103e8610af3366004614990565b612518565b348015610b0457600080fd5b50610435610b133660046147ae565b61260b565b348015610b2457600080fd5b506103e86126a0565b348015610b3957600080fd5b506103e8610b48366004614695565b612752565b348015610b5957600080fd5b506103e8610b68366004614695565b612829565b348015610b7957600080fd5b5061045b610b883660046149ad565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260126020908152604080832093909416825291909152205490565b348015610bcc57600080fd5b506103e8610bdb366004614990565b612900565b348015610bec57600080fd5b5061045b600a5481565b348015610c0257600080fd5b506103e8610c11366004614990565b6129e7565b348015610c2257600080fd5b5061045b60075481565b348015610c3857600080fd5b506103e8610c473660046149ad565b612ad0565b348015610c5857600080fd5b506103e8610c673660046147ae565b612bc5565b348015610c7857600080fd5b506103e8610c873660046148ad565b612cf2565b348015610c9857600080fd5b506103e8612e0c565b60005473ffffffffffffffffffffffffffffffffffffffff163314610d27576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6017546040517f0483f7a000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8481166004830152831515602483015290911690630483f7a0906044015b600060405180830381600087803b158015610d9d57600080fd5b505af1158015610db1573d6000803e3d6000fd5b505050505050565b606060048054610dc8906149db565b80601f0160208091040260200160405190810160405280929190818152602001828054610df4906149db565b8015610e415780601f10610e1657610100808354040283529160200191610e41565b820191906000526020600020905b815481529060010190602001808311610e2457829003601f168201915b5050505050905090565b6000610e58338484612ec9565b50600192915050565b6000610e6e84848461307c565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260126020908152604080832033845290915290205482811015610f2f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5452494641524d3a207472616e7366657220616d6f756e74206578636565647360448201527f20616c6c6f77616e6365000000000000000000000000000000000000000000006064820152608401610d1e565b610f438533610f3e8685614a5e565b612ec9565b506001949350505050565b6017546040517f27ce014700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff838116600483015260009216906327ce0147906024015b602060405180830381865afa158015610fc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe49190614a75565b92915050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461106b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d1e565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810182905273ffffffffffffffffffffffffffffffffffffffff83169063a9059cbb906044016020604051808303816000875af11580156110de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111029190614a8e565b505050565b33600081815260126020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091610e58918590610f3e908690614aab565b60005473ffffffffffffffffffffffffffffffffffffffff1633146111cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d1e565b73ffffffffffffffffffffffffffffffffffffffff811660009081526016602052604090205460ff161561125c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f7573657220616c726561647920626c61636b6c697374656400000000000000006044820152606401610d1e565b73ffffffffffffffffffffffffffffffffffffffff16600090815260166020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60175473ffffffffffffffffffffffffffffffffffffffff1663807ab4f7335b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff90911660048201526024016020604051808303816000875af1158015611336573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135a9190614a8e565b50565b60005473ffffffffffffffffffffffffffffffffffffffff1633146113de576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d1e565b73ffffffffffffffffffffffffffffffffffffffff811660009081526016602052604090205460ff1661146d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f7573657220616c72656164792077686974656c697374656400000000000000006044820152606401610d1e565b73ffffffffffffffffffffffffffffffffffffffff16600090815260166020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b60005473ffffffffffffffffffffffffffffffffffffffff16331461153a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d1e565b600683905560078290556008819055806115548385614aab565b61155e9190614aab565b600955505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146115e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d1e565b600d8054600a939093559015157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0093151561010002939093167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000090921691909117919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146116d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d1e565b60185473ffffffffffffffffffffffffffffffffffffffff8281169116141561177c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603560248201527f5452494641524d3a2074686520726f7574657220697320616c7265616479207360448201527f657420746f20746865206e6577206164647265737300000000000000000000006064820152608401610d1e565b60185460405173ffffffffffffffffffffffffffffffffffffffff918216918316907f8fc842bbd331dfa973645f4ed48b11683d501ebf1352708d77a5da2ab49a576e90600090a3601880547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8316908117909155604080517fc45a015500000000000000000000000000000000000000000000000000000000815290516000929163c45a01559160048083019260209291908290030181865afa15801561185e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118829190614ac3565b73ffffffffffffffffffffffffffffffffffffffff1663c9c6539630601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561190b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061192f9190614ac3565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff9283166004820152911660248201526044016020604051808303816000875af11580156119a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119c59190614ac3565b601980547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff929092169190911790555050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611a8f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d1e565b60af8110158015611aa257506127108111155b611b2e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f425053206d757374206265206265747765656e2031373520616e64203130303060448201527f30000000000000000000000000000000000000000000000000000000000000006064820152608401610d1e565b601b55565b60005473ffffffffffffffffffffffffffffffffffffffff163314611bb4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d1e565b611bbe6000613b94565b565b6017546040517f7b510fe800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301526000928392839283928392911690637b510fe89060240160a060405180830381865afa158015611c3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5e9190614ae0565b939a9299509097509550909350915050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611cf1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d1e565b6017546040517f8e1269440000000000000000000000000000000000000000000000000000000081526004810184905273ffffffffffffffffffffffffffffffffffffffff838116602483015290911690638e12694490604401610d83565b606060058054610dc8906149db565b60005473ffffffffffffffffffffffffffffffffffffffff163314611de0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d1e565b60195473ffffffffffffffffffffffffffffffffffffffff83811691161415611e8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f5452494641524d3a2044455820706169722063616e206e6f742062652072656d60448201527f6f766564000000000000000000000000000000000000000000000000000000006064820152608401610d1e565b611e948282613c09565b5050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611f19576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d1e565b604051339082156108fc029083906000818181858888f19350505050158015611e94573d6000803e3d6000fd5b33600090815260126020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915281205482811015612007576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f5452494641524d3a2064656372656173656420616c6c6f77616e63652062656c60448201527f6f77207a65726f000000000000000000000000000000000000000000000000006064820152608401610d1e565b6120163385610f3e8685614a5e565b5060019392505050565b6017546040517fa680e0bc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8381166004830152600092169063a680e0bc90602401610fa3565b6017546040517fa8b9d24000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8381166004830152600092169063a8b9d24090602401610fa3565b6000610e5833848461307c565b60005473ffffffffffffffffffffffffffffffffffffffff163314612160576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d1e565b604b811015801561217357506127108111155b6121d9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f425053206d757374206265206265747765656e20373520616e642031303030306044820152606401610d1e565b601a55565b6017546040517faafd847a00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8381166004830152600092169063aafd847a90602401610fa3565b60005473ffffffffffffffffffffffffffffffffffffffff1633146122b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d1e565b73ffffffffffffffffffffffffffffffffffffffff821660009081526013602052604090205460ff1615158115151415612374576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f5452494641524d3a206163636f756e7420697320616c7265616479207365742060448201527f746f2072657175657374656420737461746500000000000000000000000000006064820152608401610d1e565b73ffffffffffffffffffffffffffffffffffffffff821660008181526013602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461247f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d1e565b60005b81518160ff161015611e9457600160166000848460ff16815181106124a9576124a9614b29565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff16825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790558061251081614b58565b915050612482565b60005473ffffffffffffffffffffffffffffffffffffffff163314612599576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d1e565b600d805482151562010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff9091161790556040517f5bb2376cf656637e70e36c01d3da25685bf3b353f18681b8a5e48c7b2effe1339061260090831515815260200190565b60405180910390a150565b6017546040517fc705c56900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8381166004830152600092169063c705c56990602401602060405180830381865afa15801561267c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe49190614a8e565b60005473ffffffffffffffffffffffffffffffffffffffff163314612721576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d1e565b601c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905543600c55565b60005473ffffffffffffffffffffffffffffffffffffffff1633146127d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d1e565b73ffffffffffffffffffffffffffffffffffffffff919091166000908152601e6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146128aa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d1e565b73ffffffffffffffffffffffffffffffffffffffff919091166000908152601d6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314612981576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d1e565b600d8054821515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff9091161790556040517fb9bbb15e341600c8d067a0cadeba219905d5ba6d422b193c9c32265d26fc51c89061260090831515815260200190565b60005473ffffffffffffffffffffffffffffffffffffffff163314612a68576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d1e565b600d80548215156301000000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffff9091161790556040517f341322866a3a2c26c27efa4c270c5ba86f6963257118897dd8196f224c002d439061260090831515815260200190565b60005473ffffffffffffffffffffffffffffffffffffffff163314612b51576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d1e565b600f80547fffffffffffffffffffffff0000000000000000000000000000000000000000ff1661010073ffffffffffffffffffffffffffffffffffffffff94851602179055601080547fffffffffffffffffffffffff00000000000000000000000000000000000000001691909216179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314612c46576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d1e565b73ffffffffffffffffffffffffffffffffffffffff8116612ce9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d1e565b61135a81613b94565b60005473ffffffffffffffffffffffffffffffffffffffff163314612d73576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d1e565b60005b81518160ff161015611e9457600060166000848460ff1681518110612d9d57612d9d614b29565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff16825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905580612e0481614b58565b915050612d76565b600d546301000000900460ff16612ea5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f5452494641524d3a20636f6d706f756e64696e67206973206e6f7420656e616260448201527f6c656400000000000000000000000000000000000000000000000000000000006064820152608401610d1e565b60175473ffffffffffffffffffffffffffffffffffffffff16636de1a5a9336112cb565b73ffffffffffffffffffffffffffffffffffffffff8316612f6c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f5452494641524d3a20617070726f76652066726f6d20746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d1e565b73ffffffffffffffffffffffffffffffffffffffff821661300e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f5452494641524d3a20617070726f766520746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610d1e565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526012602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b601c5460ff16806130a7575060005473ffffffffffffffffffffffffffffffffffffffff8481169116145b806130cc575060005473ffffffffffffffffffffffffffffffffffffffff8381169116145b806130fc575073ffffffffffffffffffffffffffffffffffffffff831660009081526015602052604090205460ff165b8061312c575073ffffffffffffffffffffffffffffffffffffffff821660009081526015602052604090205460ff165b613192576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f4e6f74204f70656e0000000000000000000000000000000000000000000000006044820152606401610d1e565b73ffffffffffffffffffffffffffffffffffffffff831660009081526016602052604090205460ff1615613222576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f5452494641524d3a2053656e64657220697320626c61636b6c697374656400006044820152606401610d1e565b73ffffffffffffffffffffffffffffffffffffffff821660009081526016602052604090205460ff16156132d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f5452494641524d3a20526563697069656e7420697320626c61636b6c6973746560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610d1e565b73ffffffffffffffffffffffffffffffffffffffff831661337b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f5452494641524d3a207472616e736665722066726f6d20746865207a65726f2060448201527f61646472657373000000000000000000000000000000000000000000000000006064820152608401610d1e565b73ffffffffffffffffffffffffffffffffffffffff821661341e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f5452494641524d3a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610d1e565b6000612710601a5461342f600e5490565b6134399190614b78565b6134439190614bb5565b90506000612710601b54613456600e5490565b6134609190614b78565b61346a9190614bb5565b905081831115806134a0575073ffffffffffffffffffffffffffffffffffffffff85166000908152601d602052604090205460ff165b613506576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f5458204c696d69742045786365656465640000000000000000000000000000006044820152606401610d1e565b60005473ffffffffffffffffffffffffffffffffffffffff868116911614801590613547575073ffffffffffffffffffffffffffffffffffffffff84163014155b801561356e575060025473ffffffffffffffffffffffffffffffffffffffff858116911614155b8015613595575060195473ffffffffffffffffffffffffffffffffffffffff858116911614155b156135ee5773ffffffffffffffffffffffffffffffffffffffff8416600090815260116020908152604080832054601e9092529091205460ff16806135e35750816135e08583614aab565b11155b6135ec57600080fd5b505b73ffffffffffffffffffffffffffffffffffffffff8516600090815260116020526040902054838110156136a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f5452494641524d3a207472616e7366657220616d6f756e74206578636565647360448201527f2062616c616e63650000000000000000000000000000000000000000000000006064820152608401610d1e565b30600090815260116020526040902054600a54600d54479183101590610100900460ff1680156136d15750805b80156136e05750600f5460ff16155b8015613712575073ffffffffffffffffffffffffffffffffffffffff891660009081526014602052604090205460ff16155b8015613739575060185473ffffffffffffffffffffffffffffffffffffffff8a8116911614155b8015613760575060005473ffffffffffffffffffffffffffffffffffffffff8a8116911614155b8015613787575060005473ffffffffffffffffffffffffffffffffffffffff898116911614155b156137fe57600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055600d5460ff166137c757600a5492505b6137d18383613e19565b42600b55600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690555b60195460009073ffffffffffffffffffffffffffffffffffffffff8b811691161480613844575060195473ffffffffffffffffffffffffffffffffffffffff8a81169116145b1561384d575060015b73ffffffffffffffffffffffffffffffffffffffff8a1660009081526013602052604090205460ff16806138a6575073ffffffffffffffffffffffffffffffffffffffff891660009081526013602052604090205460ff165b156138af575060005b600f5460ff16806138c95750600d5462010000900460ff16155b156138d2575060005b80156139105760006127106009548a6138eb9190614b78565b6138f59190614bb5565b9050613901818a614a5e565b985061390e8b3083614134565b505b61391b8a8a8a614134565b60175473ffffffffffffffffffffffffffffffffffffffff1663e30443bc8b6139668173ffffffffffffffffffffffffffffffffffffffff1660009081526011602052604090205490565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401600060405180830381600087803b1580156139d157600080fd5b505af11580156139e5573d6000803e3d6000fd5b505060175473ffffffffffffffffffffffffffffffffffffffff16915063e30443bc90508a613a368173ffffffffffffffffffffffffffffffffffffffff1660009081526011602052604090205490565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401600060405180830381600087803b158015613aa157600080fd5b505af1158015613ab5573d6000803e3d6000fd5b50505050600c544311158015613ae6575060185473ffffffffffffffffffffffffffffffffffffffff8a8116911614155b8015613b0d575060175473ffffffffffffffffffffffffffffffffffffffff8a8116911614155b8015613b34575060195473ffffffffffffffffffffffffffffffffffffffff8a8116911614155b15613b885773ffffffffffffffffffffffffffffffffffffffff8916600090815260166020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555b50505050505050505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526014602052604090205460ff1615158115151415613ceb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604160248201527f5452494641524d3a206175746f6d61746564206d61726b6574206d616b65722060448201527f7061697220697320616c72656164792073657420746f20746861742076616c7560648201527f6500000000000000000000000000000000000000000000000000000000000000608482015260a401610d1e565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260146020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168215801591909117909155613dd0576017546040517f0483f7a000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84811660048301526001602483015290911690630483f7a090604401600060405180830381600087803b158015613db757600080fd5b505af1158015613dcb573d6000803e3d6000fd5b505050505b6040518115159073ffffffffffffffffffffffffffffffffffffffff8416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b60008211613e25575050565b600f54600090610100900473ffffffffffffffffffffffffffffffffffffffff1615613e6857600954600654613e5b9085614b78565b613e659190614bb5565b90505b600080601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015613ed8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613efc9190614a75565b1115613f1f57600954600854613f129086614b78565b613f1c9190614bb5565b90505b600081613f2c8487614a5e565b613f369190614a5e565b90506000613f45600283614bb5565b90506000613f538284614a5e565b9050600082613f628688614aab565b613f6c9190614aab565b905047613f78826143f1565b600088613f858347614a5e565b613f8f9190614aab565b9050600083613f9e8a84614b78565b613fa89190614bb5565b9050600084613fb78a85614b78565b613fc19190614bb5565b9050600081613fd08486614a5e565b613fda9190614a5e565b9050821561402f57600f5460405161010090910473ffffffffffffffffffffffffffffffffffffffff16906108fc8515029085906000818181858888f1935050505015801561402d573d6000803e3d6000fd5b505b614039878261456e565b60408051898152602081018390529081018890527fb63dc6f50047533abe2d6adf180d38d524c8d98e55ad199aac8d6b9801bbe24a9060600160405180910390a181156141255760175460405160009173ffffffffffffffffffffffffffffffffffffffff169084908381818185875af1925050503d80600081146140da576040519150601f19603f3d011682016040523d82523d6000602084013e6140df565b606091505b50509050801561412357604080518c8152602081018590527f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc3910160405180910390a15b505b50505050505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff83166141d7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f5452494641524d3a207472616e736665722066726f6d20746865207a65726f2060448201527f61646472657373000000000000000000000000000000000000000000000000006064820152608401610d1e565b73ffffffffffffffffffffffffffffffffffffffff821661427a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f5452494641524d3a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610d1e565b73ffffffffffffffffffffffffffffffffffffffff831660009081526011602052604090205481811015614330576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f5452494641524d3a207472616e7366657220616d6f756e74206578636565647360448201527f2062616c616e63650000000000000000000000000000000000000000000000006064820152608401610d1e565b61433a8282614a5e565b73ffffffffffffffffffffffffffffffffffffffff808616600090815260116020526040808220939093559085168152908120805484929061437d908490614aab565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516143e391815260200190565b60405180910390a350505050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061442657614426614b29565b73ffffffffffffffffffffffffffffffffffffffff928316602091820292909201810191909152601854604080517fad5c46480000000000000000000000000000000000000000000000000000000081529051919093169263ad5c46489260048083019391928290030181865afa1580156144a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144c99190614ac3565b816001815181106144dc576144dc614b29565b73ffffffffffffffffffffffffffffffffffffffff928316602091820292909201015260185461450f9130911684612ec9565b6018546040517f791ac94700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063791ac94790610d83908590600090869030904290600401614bf0565b60185461459390309073ffffffffffffffffffffffffffffffffffffffff1684612ec9565b6018546010546040517ff305d71900000000000000000000000000000000000000000000000000000000815230600482015260248101859052600060448201819052606482015273ffffffffffffffffffffffffffffffffffffffff91821660848201524260a482015291169063f305d71990839060c40160606040518083038185885af1158015614629573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061464e9190614c7b565b5050505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461135a57600080fd5b803561468281614655565b919050565b801515811461135a57600080fd5b600080604083850312156146a857600080fd5b82356146b381614655565b915060208301356146c381614687565b809150509250929050565b600060208083528351808285015260005b818110156146fb578581018301518582016040015282016146df565b8181111561470d576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b6000806040838503121561475457600080fd5b823561475f81614655565b946020939093013593505050565b60008060006060848603121561478257600080fd5b833561478d81614655565b9250602084013561479d81614655565b929592945050506040919091013590565b6000602082840312156147c057600080fd5b81356147cb81614655565b9392505050565b6000806000606084860312156147e757600080fd5b505081359360208301359350604090920135919050565b60008060006060848603121561481357600080fd5b833561481e81614687565b925060208401359150604084013561483581614687565b809150509250925092565b60006020828403121561485257600080fd5b5035919050565b6000806040838503121561486c57600080fd5b8235915060208301356146c381614655565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060208083850312156148c057600080fd5b823567ffffffffffffffff808211156148d857600080fd5b818501915085601f8301126148ec57600080fd5b8135818111156148fe576148fe61487e565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f830116810181811085821117156149415761494161487e565b60405291825284820192508381018501918883111561495f57600080fd5b938501935b828510156149845761497585614677565b84529385019392850192614964565b98975050505050505050565b6000602082840312156149a257600080fd5b81356147cb81614687565b600080604083850312156149c057600080fd5b82356149cb81614655565b915060208301356146c381614655565b600181811c908216806149ef57607f821691505b60208210811415614a29577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015614a7057614a70614a2f565b500390565b600060208284031215614a8757600080fd5b5051919050565b600060208284031215614aa057600080fd5b81516147cb81614687565b60008219821115614abe57614abe614a2f565b500190565b600060208284031215614ad557600080fd5b81516147cb81614655565b600080600080600060a08688031215614af857600080fd5b8551614b0381614655565b602087015160408801516060890151608090990151929a91995097965090945092505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060ff821660ff811415614b6f57614b6f614a2f565b60010192915050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614bb057614bb0614a2f565b500290565b600082614beb577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015614c4d57845173ffffffffffffffffffffffffffffffffffffffff1683529383019391830191600101614c1b565b505073ffffffffffffffffffffffffffffffffffffffff969096166060850152505050608001529392505050565b600080600060608486031215614c9057600080fd5b835192506020840151915060408401519050925092509256fea2646970667358221220f8fda5f4feac9375718a7d4d4c43155e0f8e554a686a9be18fd49dae279ebccc64736f6c634300080a0033

Verified Source Code Partial Match

Compiler: v0.8.10+commit.fc410830 EVM: london Optimization: Yes (1000000 runs)
TriFarm.sol 2287 lines
/*

Tri-Farm Seed Capital | $TRIFARM
Till | Seed | Cultivate | Farm | Stake | Fund | Repeat

https://t.me/trifarm
https://trifarmcapital.com

Copyright 2022 TriFarm Seed Capital

*/

// SPDX-License-Identifier: MIT
pragma solidity =0.8.10 >=0.8.0 <0.9.0;
pragma experimental ABIEncoderV2;

////// lib/openzeppelin-contracts/contracts/utils/Context.sol
// OpenZeppelin Contracts v4.4.0 (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;
    }
}

////// lib/openzeppelin-contracts/contracts/access/Ownable.sol
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)

/* pragma solidity ^0.8.0; */

/* import "../utils/Context.sol"; */

/**
 * @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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing 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);
    }
}

////// lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

/* pragma solidity ^0.8.0; */

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @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);
}

////// lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol
// OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/IERC20Metadata.sol)

/* pragma solidity ^0.8.0; */

/* import "../IERC20.sol"; */

/**
 * @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);
}

////// lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol
// OpenZeppelin Contracts v4.4.0 (token/ERC20/ERC20.sol)

/* pragma solidity ^0.8.0; */

/* import "./IERC20.sol"; */
/* import "./extensions/IERC20Metadata.sol"; */
/* import "../../utils/Context.sol"; */

/**
 * @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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * 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}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * 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 value {ERC20} uses, unless this function is
     * 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:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, 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}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), 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}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - 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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][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) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * 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:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, 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;
        _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;
        }
        _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 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 {}
}

////// lib/openzeppelin-contracts/contracts/utils/Address.sol
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

/* pragma solidity ^0.8.0; */

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

////// lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol
// OpenZeppelin Contracts v4.4.0 (utils/math/SafeMath.sol)

/* pragma solidity ^0.8.0; */

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

////// src/IUniswapV2Factory.sol
/* pragma solidity 0.8.10; */
/* pragma experimental ABIEncoderV2; */

interface IUniswapV2Factory {
    event PairCreated(
        address indexed token0,
        address indexed token1,
        address pair,
        uint256
    );

    function feeTo() external view returns (address);

    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB)
        external
        view
        returns (address pair);

    function allPairs(uint256) external view returns (address pair);

    function allPairsLength() external view returns (uint256);

    function createPair(address tokenA, address tokenB)
        external
        returns (address pair);

    function setFeeTo(address) external;

    function setFeeToSetter(address) external;
}

////// src/IUniswapV2Pair.sol
/* pragma solidity 0.8.10; */
/* pragma experimental ABIEncoderV2; */

interface IUniswapV2Pair {
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );
    event Transfer(address indexed from, address indexed to, uint256 value);

    function name() external pure returns (string memory);

    function symbol() external pure returns (string memory);

    function decimals() external pure returns (uint8);

    function totalSupply() external view returns (uint256);

    function balanceOf(address owner) external view returns (uint256);

    function allowance(address owner, address spender)
        external
        view
        returns (uint256);

    function approve(address spender, uint256 value) external returns (bool);

    function transfer(address to, uint256 value) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);

    function PERMIT_TYPEHASH() external pure returns (bytes32);

    function nonces(address owner) external view returns (uint256);

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    event Mint(address indexed sender, uint256 amount0, uint256 amount1);
    event Burn(
        address indexed sender,
        uint256 amount0,
        uint256 amount1,
        address indexed to
    );
    event Swap(
        address indexed sender,
        uint256 amount0In,
        uint256 amount1In,
        uint256 amount0Out,
        uint256 amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint256);

    function factory() external view returns (address);

    function token0() external view returns (address);

    function token1() external view returns (address);

    function getReserves()
        external
        view
        returns (
            uint112 reserve0,
            uint112 reserve1,
            uint32 blockTimestampLast
        );

    function price0CumulativeLast() external view returns (uint256);

    function price1CumulativeLast() external view returns (uint256);

    function kLast() external view returns (uint256);

    function mint(address to) external returns (uint256 liquidity);

    function burn(address to)
        external
        returns (uint256 amount0, uint256 amount1);

    function swap(
        uint256 amount0Out,
        uint256 amount1Out,
        address to,
        bytes calldata data
    ) external;

    function skim(address to) external;

    function sync() external;

    function initialize(address, address) external;
}

////// src/IUniswapV2Router02.sol
/* pragma solidity 0.8.10; */
/* pragma experimental ABIEncoderV2; */

interface IUniswapV2Router02 {
    function factory() external pure returns (address);

    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    )
        external
        returns (
            uint256 amountA,
            uint256 amountB,
            uint256 liquidity
        );

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable;

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
}

////// trifarm.sol


/* pragma solidity 0.8.10; */

/* import {ERC20} from "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol"; */
/* import {IERC20} from "lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol"; */
/* import {Ownable} from "lib/openzeppelin-contracts/contracts/access/Ownable.sol"; */
/* import {Address} from "lib/openzeppelin-contracts/contracts/utils/Address.sol"; */
/* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */

/* import {IUniswapV2Router02} from "./IUniswapV2Router02.sol"; */
/* import {IUniswapV2Factory} from "./IUniswapV2Factory.sol"; */
/* import {IUniswapV2Pair} from "./IUniswapV2Pair.sol"; */

contract TriFarm is Ownable, IERC20 {
    address UNISWAPROUTER = address(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
    address DEAD = 0x000000000000000000000000000000000000dEaD;
    address ZERO = 0x0000000000000000000000000000000000000000;

    string private _name = "TriFarm Seed Capital";
    string private _symbol = "TRIFARM";

    uint256 public treasuryFeeBPS = 1200;
    uint256 public liquidityFeeBPS = 100;
    uint256 public dividendFeeBPS = 200;
    uint256 public totalFeeBPS = 1500;

    uint256 public swapTokensAtAmount = 100000 * (10**18);
    uint256 public lastSwapTime;
    uint256 public launchedAt;
    bool swapAllToken = true;

    bool public swapEnabled = true;
    bool public taxEnabled = true;
    bool public compoundingEnabled = true;

    uint256 private _totalSupply;
    bool private swapping;
    

    address marketingWallet;
    address liquidityWallet;

    mapping(address => uint256) private _balances;
    mapping(address => mapping(address => uint256)) private _allowances;
    mapping(address => bool) private _isExcludedFromFees;
    mapping(address => bool) public automatedMarketMakerPairs;
    mapping(address => bool) private _whiteList;
    mapping(address => bool) isBlacklisted;

    event SwapAndAddLiquidity(
        uint256 tokensSwapped,
        uint256 nativeReceived,
        uint256 tokensIntoLiquidity
    );
    event SendDividends(uint256 tokensSwapped, uint256 amount);
    event ExcludeFromFees(address indexed account, bool isExcluded);
    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
    event UpdateUniswapV2Router(
        address indexed newAddress,
        address indexed oldAddress
    );
    event SwapEnabled(bool enabled);
    event TaxEnabled(bool enabled);
    event CompoundingEnabled(bool enabled);
    event BlacklistEnabled(bool enabled);

    DividendTracker public dividendTracker;
    IUniswapV2Router02 public uniswapV2Router;

    address public uniswapV2Pair;

    uint256 public maxTxBPS = 50;
    uint256 public maxWalletBPS = 200;

    bool isOpen = false;

    mapping(address => bool) private _isExcludedFromMaxTx;
    mapping(address => bool) private _isExcludedFromMaxWallet;

    constructor(
        address _marketingWallet,
        address _liquidityWallet,
        address[] memory whitelistAddress
    ) {
        marketingWallet = _marketingWallet;
        liquidityWallet = _liquidityWallet;
        includeToWhiteList(whitelistAddress);

        dividendTracker = new DividendTracker(address(this), UNISWAPROUTER);

        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(UNISWAPROUTER);

        address _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
            .createPair(address(this), _uniswapV2Router.WETH());

        uniswapV2Router = _uniswapV2Router;
        uniswapV2Pair = _uniswapV2Pair;

        _setAutomatedMarketMakerPair(_uniswapV2Pair, true);

        dividendTracker.excludeFromDividends(address(dividendTracker), true);
        dividendTracker.excludeFromDividends(address(this), true);
        dividendTracker.excludeFromDividends(owner(), true);
        dividendTracker.excludeFromDividends(address(_uniswapV2Router), true);

        excludeFromFees(owner(), true);
        excludeFromFees(address(this), true);
        excludeFromFees(address(dividendTracker), true);

        excludeFromMaxTx(owner(), true);
        excludeFromMaxTx(address(this), true);
        excludeFromMaxTx(address(dividendTracker), true);

        excludeFromMaxWallet(owner(), true);
        excludeFromMaxWallet(address(this), true);
        excludeFromMaxWallet(address(dividendTracker), true);

        _mint(owner(), 1000000000 * (10**18));
    }

    receive() external payable {}

    function name() public view returns (string memory) {
        return _name;
    }

    function symbol() public view returns (string memory) {
        return _symbol;
    }

    function decimals() public pure returns (uint8) {
        return 18;
    }

    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account)
        public
        view
        virtual
        override
        returns (uint256)
    {
        return _balances[account];
    }

    function allowance(address owner, address spender)
        public
        view
        virtual
        override
        returns (uint256)
    {
        return _allowances[owner][spender];
    }

    function approve(address spender, uint256 amount)
        public
        virtual
        override
        returns (bool)
    {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    function increaseAllowance(address spender, uint256 addedValue)
        public
        returns (bool)
    {
        _approve(
            _msgSender(),
            spender,
            _allowances[_msgSender()][spender] + addedValue
        );
        return true;
    }

    function decreaseAllowance(address spender, uint256 subtractedValue)
        public
        returns (bool)
    {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(
            currentAllowance >= subtractedValue,
            "TRIFARM: decreased allowance below zero"
        );
        _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        return true;
    }

    function transfer(address recipient, uint256 amount)
        public
        virtual
        override
        returns (bool)
    {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(
            currentAllowance >= amount,
            "TRIFARM: transfer amount exceeds allowance"
        );
        _approve(sender, _msgSender(), currentAllowance - amount);
        return true;
    }

    function openTrading() external onlyOwner {
        isOpen = true;
        launchedAt = block.number;
    }

    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal {
        require(
            isOpen ||
                sender == owner() ||
                recipient == owner() ||
                _whiteList[sender] ||
                _whiteList[recipient],
            "Not Open"
        );

        require(!isBlacklisted[sender], "TRIFARM: Sender is blacklisted");
        require(!isBlacklisted[recipient], "TRIFARM: Recipient is blacklisted");

        require(sender != address(0), "TRIFARM: transfer from the zero address");
        require(recipient != address(0), "TRIFARM: transfer to the zero address");

        uint256 _maxTxAmount = (totalSupply() * maxTxBPS) / 10000;
        uint256 _maxWallet = (totalSupply() * maxWalletBPS) / 10000;
        require(
            amount <= _maxTxAmount || _isExcludedFromMaxTx[sender],
            "TX Limit Exceeded"
        );

        if (
            sender != owner() &&
            recipient != address(this) &&
            recipient != address(DEAD) &&
            recipient != uniswapV2Pair
        ) {
            uint256 currentBalance = balanceOf(recipient);
            require(
                _isExcludedFromMaxWallet[recipient] ||
                    (currentBalance + amount <= _maxWallet)
            );
        }

        uint256 senderBalance = _balances[sender];
        require(
            senderBalance >= amount,
            "TRIFARM: transfer amount exceeds balance"
        );

        uint256 contractTokenBalance = balanceOf(address(this));
        uint256 contractNativeBalance = address(this).balance;

        bool canSwap = contractTokenBalance >= swapTokensAtAmount;

        if (
            swapEnabled && // True
            canSwap && // true
            !swapping && // swapping=false !false true
            !automatedMarketMakerPairs[sender] && // no swap on remove liquidity step 1 or DEX buy
            sender != address(uniswapV2Router) && // no swap on remove liquidity step 2
            sender != owner() &&
            recipient != owner()
        ) {
            swapping = true;

            if (!swapAllToken) {
                contractTokenBalance = swapTokensAtAmount;
            }
            _executeSwap(contractTokenBalance, contractNativeBalance);

        ...

// [truncated — 74204 bytes total]

Read Contract

accumulativeDividendOf 0x27ce0147 → uint256
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
compoundingEnabled 0x2f4504ae → bool
decimals 0x313ce567 → uint8
dividendFeeBPS 0xb80b6e89 → uint256
dividendTracker 0x2c1f5216 → address
getAccountInfo 0x7b510fe8 → address, uint256, uint256, uint256, uint256
getLastClaimTime 0xa680e0bc → uint256
isExcludedFromDividends 0xc705c569 → bool
isExcludedFromFees 0x4fbee193 → bool
isExcludedFromMaxTx 0x658c27a9 → bool
isExcludedFromMaxWallet 0x6dd3d39f → bool
lastSwapTime 0x0dd87157 → uint256
launchedAt 0xbf56b371 → uint256
liquidityFeeBPS 0xebbf1ace → uint256
maxTxBPS 0x57777d31 → uint256
maxWalletBPS 0x744d1591 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
taxEnabled 0x870bd30b → bool
totalFeeBPS 0x37eb1528 → uint256
totalSupply 0x18160ddd → uint256
treasuryFeeBPS 0x5937ea6c → uint256
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
withdrawableDividendOf 0xa8b9d240 → uint256
withdrawnDividendOf 0xaafd847a → uint256

Write Contract 31 functions

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

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
blackList 0x4838d165
address _user
blackListMany 0xc3033aeb
address[] _users
claim 0x4e71d92d
No parameters
compound 0xf69e2046
No parameters
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeFromDividends 0x0483f7a0
address account
bool excluded
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTx 0xd4c989d3
address account
bool excluded
excludeFromMaxWallet 0xd2fcc001
address account
bool excluded
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
manualSendDividend 0x8e126944
uint256 amount
address holder
openTrading 0xc9567bf9
No parameters
removeFromBlacklist 0x537df3b6
address _user
renounceOwnership 0x715018a6
No parameters
rescueETH 0x9e252f00
uint256 _amount
rescueToken 0x33f3d628
address _token
uint256 _amount
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setCompoundingEnabled 0xe4956ce2
bool _enabled
setFee 0x5b65b9ab
uint256 _treasuryFee
uint256 _liquidityFee
uint256 _dividendFee
setMaxTxBPS 0xaa4e8c4a
uint256 bps
setMaxWalletBPS 0x68c51e35
uint256 bps
setSwapEnabled 0xe01af92c
bool _enabled
setTaxEnabled 0xc6af580b
bool _enabled
setWallet 0xf1b234ad
address _marketingWallet
address _liquidityWallet
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
unBlackListMany 0xf4571c49
address[] _users
updateDividendSettings 0x5e843ad2
bool _swapEnabled
uint256 _swapTokensAtAmount
bool _swapAllToken
updateUniswapV2Router 0x65b8dbc0
address newAddress

Recent Transactions

No transactions found for this address