6 txs
8 calls
constructor
constructor(address _uniswapRouter, address _treasury, address _dexTreasury, uint256 _feeBasisPoints, uint256 _dexFeeBasisPoints)
functions
BASIS_POINTS_DENOMINATOR
viewfunction BASIS_POINTS_DENOMINATOR() view returns (uint256)
dexFeeBasisPoints
viewfunction dexFeeBasisPoints() view returns (uint256)
dexTreasury
viewfunction dexTreasury() view returns (address)
feeBasisPoints
viewfunction feeBasisPoints() view returns (uint256)
MAX_FEE_BASIS_POINTS
viewfunction MAX_FEE_BASIS_POINTS() view returns (uint256)
owner
viewfunction owner() view returns (address)
treasury
viewfunction treasury() view returns (address)
UNISWAP_ROUTER
viewfunction UNISWAP_ROUTER() view returns (address)
renounceOwnership
nonpayablefunction renounceOwnership()
setConfig
nonpayablefunction setConfig(address _treasury, address _dexTreasury, uint256 _feeBasisPoints, uint256 _dexFeeBasisPoints)
swapETHForExactTokens
payablefunction swapETHForExactTokens(address tokenOut, uint256 amountOut) payable
swapExactETHForTokens
payablefunction swapExactETHForTokens(address tokenOut, uint256 amountOutMin) payable
swapExactTokensForETH
nonpayablefunction swapExactTokensForETH(address tokenIn, uint256 amountIn, uint256 amountOutMin)
swapTokensForExactETH
nonpayablefunction swapTokensForExactETH(address tokenIn, uint256 amountOut, uint256 amountInMax)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
events
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
UniswapSwap
event UniswapSwap(address senderAddress, address tokenFromAddress, address tokenToAddress, uint256 amountIn, uint256 amountOut, uint256 helioFee, address helioFeeMintAddress, uint256 dexFee, address dexFeeMintAddress, address poolId)
errors
AddressEmptyCode
error AddressEmptyCode(address target)
AddressInsufficientBalance
error AddressInsufficientBalance(address account)
FailedInnerCall
error FailedInnerCall()
FailedToSendETH
error FailedToSendETH()
InvalidFeeBasisPoints
error InvalidFeeBasisPoints()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
SafeERC20FailedOperation
error SafeERC20FailedOperation(address token)
ZeroAddress
error ZeroAddress()
creation bytecode
0x60a0346200019257601f6200170138819003918201601f191683019291906001600160401b0384118385101762000197578160a0928492604096875283398101031262000192576200005181620001ad565b906200006060208201620001ad565b916200006e848301620001ad565b90608060608401519301519333156200017a57600080546001600160a01b031980821633908117845589519691956001600160a01b039592948694859391908416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a316608052169384156200016b5750169182156200015a5761251c841162000149576127108511620001495781600154161760015560025416176002556003556004555161153e9081620001c3823960805181818161016d015281816101f7015281816105b3015281816109ca0152610dd90152f35b855163a724e54f60e01b8152600490fd5b855163d92e233d60e01b8152600490fd5b63d92e233d60e01b8152600490fd5b8551631e4fbdf760e01b815260006004820152602490fd5b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b0382168203620001925756fe60806040818152600480361015610021575b505050361561001f57600080fd5b005b600092833560e01c908163095b710d14611027575080634befe2ca1461100a57806361d027b314610fe1578063715018a614610f875780637f24e6ec14610d9157806385f377ca14610d685780638da5cb5b14610d405780639258b71f14610c91578063b79c48e514610982578063b8606eef14610963578063bd9b208414610578578063c038847a146101bd578063cfa498a3146101a0578063d8264920146101585763f2fde38b036100115734610154576020366003190112610154576100e8611043565b906100f161133f565b6001600160a01b0391821692831561013e57505082546001600160a01b0319811683178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b50503461019c578160031936011261019c57517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b5080fd5b50503461019c578160031936011261019c57602090516127108152f35b5082903461019c576101ce3661105e565b94909160018060a01b0391828216946101e9853033896113d8565b815163095ea7b360e01b81527f000000000000000000000000000000000000000000000000000000000000000085166001600160a01b0381168383019081526020808201899052989196929089908290819060400103818d865af1801561056e57610541575b5083519061025c82611088565b6002825284368a84013761026f826110fb565b5283516315ab88c960e31b8082529190898186818b5afa908115610537579189918c93849161051a575b50856102a48361111e565b911690526102c887519d8e9384936318cbafe560e01b8552429230928b8701611306565b0381838a5af1998a1561051057899a6104ec575b50895160001981019a908b116104d9576102fa8a9b6103009261112e565b5161137e565b9390916103118385600154166113ad565b61031f8585600254166113ad565b479161032b83336113ad565b865163c45a015560e01b81528b8183818d5afa9081156104cf578d916104b2575b5087518381528c8184818e5afa9d8e156104a757918d9e916103a89b9c9d9e9392610488575b50895163e6a4390560e01b81526001600160a01b03808e16868301908152931660208401529a8b9283918a918391604090910190565b0392165afa978d891561047d57908d9392919961045e575b508751809b819382525afa978815610454577f1854e126c531b464931f921ac9c5aaca843aa7a189df01c55e9ce646881f93ab9a8c9961041f575b5050610419969798836001541693600254169551998a99338b611291565b0390a180f35b610419989950908161044592903d1061044d575b61043d81836110ba565b8101906110dc565b97968c6103fb565b503d610433565b85513d8d823e3d90fd5b610476919950833d851161044d5761043d81836110ba565b978e6103c0565b8851903d90823e3d90fd5b6104a0919250833d851161044d5761043d81836110ba565b9038610372565b8951903d90823e3d90fd5b6104c991508c8d3d1061044d5761043d81836110ba565b8e61034c565b88513d8f823e3d90fd5b634e487b7160e01b8a526011845260248afd5b610509919a503d808b833e61050181836110ba565b810190611165565b988a6102dc565b84513d8b823e3d90fd5b61053191508c8d3d1061044d5761043d81836110ba565b8e610299565b86513d8d823e3d90fd5b61056090893d8b11610567575b61055881836110ba565b8101906112ee565b508a61024f565b503d61054e565b85513d8c823e3d90fd5b508234610960576105883661105e565b946001600160a01b0392838116929091906105a5883033876113d8565b815163095ea7b360e01b81527f000000000000000000000000000000000000000000000000000000000000000086166001600160a01b03811689830190815260208082018c905297919691929088908290819060400103818c865af1801561095657610939575b508351996106198b611088565b60028b528436898d01378161062d8c6110fb565b5284516315ab88c960e31b808252949089818d818c5afa90811561092f578c9d928c9d9b9c949261068c928e8792610912575b50508761066c8661111e565b911690528851632512eca560e11b81529b8c948594429330938701611306565b0381838a5af19687156105105789976108f6575b50865160001981019081116108e357906106bf6102fa8b9c938a61112e565b9490926106d08486600154166113ad565b6106de8686600254166113ad565b47926106ea84336113ad565b87516370a0823160e01b815230838201528c81602481855afa9081156108d7578d908f926108a4575b50895163a9059cbb60e01b9181019190915233602482015260448082019290925290815261074b916107466064836110ba565b611433565b865163c45a015560e01b81528b8183818d5afa9081156104cf578d91610887575b5087518381528c8184818e5afa9d8e156104a757918d9e916107c79b9c9d9e93926104885750895163e6a4390560e01b81526001600160a01b03808e16868301908152931660208401529a8b9283918a918391604090910190565b0392165afa978d891561047d57908d93929199610868575b508751809b819382525afa978815610454577f1854e126c531b464931f921ac9c5aaca843aa7a189df01c55e9ce646881f93ab9a8c99610841575b505061082a6104199798996110fb565b51836001541693600254169551998a99338b611291565b61041998995061082a918161086192903d1061044d5761043d81836110ba565b989761081a565b610880919950833d851161044d5761043d81836110ba565b978e6107df565b61089e91508c8d3d1061044d5761043d81836110ba565b8e61076c565b809250813d83116108d0575b6108ba81836110ba565b810103126108cc57518c610746610713565b8d80fd5b503d6108b0565b8e8a51903d90823e3d90fd5b634e487b7160e01b8a5260118b5260248afd5b61090b9197503d808b833e61050181836110ba565b958a6106a0565b6109289250803d1061044d5761043d81836110ba565b388e610660565b87513d8d823e3d90fd5b61094f90883d8a116105675761055881836110ba565b508a61060c565b85513d8b823e3d90fd5b80fd5b50503461019c578160031936011261019c576020906003549051908152f35b50828260031936011261096057610997611043565b928051936109a485611088565b6002855260209180368488013780516315ab88c960e31b808252966001600160a01b03917f000000000000000000000000000000000000000000000000000000000000000083169086818a81855afa908115610c875791610a8491899594938691610c6a575b5084610a15856110fb565b91169052610a228361111e565b8488169052610a303461137e565b959093610a418587600154166113ad565b610a4f8787600254166113ad565b610a6287610a5d8734611142565b611142565b8c8951809681948293637ff36ab560e01b84524291339160243590860161121e565b0391855af1918215610c60578992610c44575b50855163c45a015560e01b81529a888c8c81855afa9b8c15610c3a578a9c610c1b575b50865181815289818d81865afa908115610c1157988c9d8b9c9d92888f94610b1b9d859f9693610bf2575b508c5163e6a4390560e01b81526001600160a01b03938416918101918252929094166020850152909b8c93849291839160400190565b0392165afa97881561092f57908a918c99610bd3575b508c88518094819382525afa988915610bc9578a99610baa575b505080516000198101919082116108e35791610b916104199694927f1854e126c531b464931f921ac9c5aaca843aa7a189df01c55e9ce646881f93ab9a9998969461112e565b518260015416926002541694519889983491338b611291565b610bc1929950803d1061044d5761043d81836110ba565b968a80610b4b565b86513d8c823e3d90fd5b610beb919950823d841161044d5761043d81836110ba565b978d610b31565b610c0a919350863d881161044d5761043d81836110ba565b9138610ae5565b88513d8d823e3d90fd5b610c33919c50893d8b1161044d5761043d81836110ba565b9a8c610aba565b87513d8c823e3d90fd5b610c599192503d808b833e61050181836110ba565b908b610a97565b86513d8b823e3d90fd5b610c819150893d8b1161044d5761043d81836110ba565b8c610a0a565b85513d8a823e3d90fd5b503461015457608036600319011261015457610cab611043565b916001600160a01b03906024358281169190829003610d3c576044359260643595610cd461133f565b16908115610d2d578215610d2d5761251c8411610d1e576127108611610d1e57506bffffffffffffffffffffffff60a01b9081600154161760015560025416176002556003555580f35b5163a724e54f60e01b81528490fd5b5163d92e233d60e01b81528490fd5b8580fd5b50503461019c578160031936011261019c57905490516001600160a01b039091168152602090f35b50503461019c578160031936011261019c5760025490516001600160a01b039091168152602090f35b50828260031936011261096057610da6611043565b92805193610db385611088565b6002855260209180368488013780516315ab88c960e31b808252966001600160a01b03917f000000000000000000000000000000000000000000000000000000000000000083169086818a81855afa908115610c875791610e8e91899594938691610f6a575b5084610e24856110fb565b91169052610e318361111e565b8488169052610e3f3461137e565b959093610e508587600154166113ad565b610e5e8787600254166113ad565b610e6c87610a5d8734611142565b8c895180968194829363fb3bdb4160e01b84524291339160243590860161121e565b0391855af1918215610c60578992610f4e575b5047610f29575b855163c45a015560e01b81529a888c8c81855afa9b8c15610c3a578a9c610c1b5750865181815289818d81865afa908115610c1157988c9d8b9c9d92888f94610b1b9d859f9693610bf257508c5163e6a4390560e01b81526001600160a01b03938416918101918252929094166020850152909b8c93849291839160400190565b8880808047335af1610f39611251565b50610ea85785516338822c1360e11b81528a90fd5b610f639192503d808b833e61050181836110ba565b908b610ea1565b610f819150893d8b1161044d5761043d81836110ba565b8c610e19565b8334610960578060031936011261096057610fa061133f565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b50503461019c578160031936011261019c5760015490516001600160a01b039091168152602090f35b50503461019c578160031936011261019c576020905161251c8152f35b9250503461015457826003193601126101545760209250548152f35b600435906001600160a01b038216820361105957565b600080fd5b6060906003190112611059576004356001600160a01b038116810361105957906024359060443590565b6060810190811067ffffffffffffffff8211176110a457604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176110a457604052565b9081602091031261105957516001600160a01b03811681036110595790565b8051156111085760200190565b634e487b7160e01b600052603260045260246000fd5b8051600110156111085760400190565b80518210156111085760209160051b010190565b9190820391821161114f57565b634e487b7160e01b600052601160045260246000fd5b90602090818382031261105957825167ffffffffffffffff93848211611059570181601f820112156110595780519384116110a4578360051b90604051946111af858401876110ba565b85528380860192820101928311611059578301905b8282106111d2575050505090565b815181529083019083016111c4565b90815180825260208080930193019160005b828110611201575050505090565b83516001600160a01b0316855293810193928101926001016111f3565b9060609261123d919695949683526080602084015260808301906111e1565b6001600160a01b0390951660408201520152565b3d1561128c573d9067ffffffffffffffff82116110a45760405191611280601f8201601f1916602001846110ba565b82523d6000602084013e565b606090565b6001600160a01b039182168152918116602083015291821660408201526060810192909252608082019290925260a081019290925291821660c082015260e081019290925291821661010082015291166101208201526101400190565b90816020910312611059575180151581036110595790565b919260809361132b92979695978452602084015260a0604084015260a08301906111e1565b6001600160a01b0390951660608201520152565b6000546001600160a01b0316330361135357565b60405163118cdaa760e01b8152336004820152602490fd5b8181029291811591840414171561114f57565b6113aa611394916127109283916003549061136b565b04916113a26004548461136b565b048092611142565b91565b600080809381935af16113be611251565b50156113c657565b6040516338822c1360e11b8152600490fd5b6040516323b872dd60e01b60208201526001600160a01b03928316602482015292909116604483015260648083019390935291815260a081019181831067ffffffffffffffff8411176110a45761143192604052611433565b565b60008061145c9260018060a01b03169360208151910182865af1611455611251565b90836114a5565b805190811515918261148a575b50506114725750565b60249060405190635274afe760e01b82526004820152fd5b61149d92506020809183010191016112ee565b153880611469565b906114cc57508051156114ba57805190602001fd5b604051630a12f52160e11b8152600490fd5b815115806114ff575b6114dd575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b156114d556fea2646970667358221220f6a091dbc164d7a50b4a19f8634c72f4685a54190c72e909784ebb96d126bb0d64736f6c634300081700330000000000000000000000004752ba5dbc23f44d87826276bf6fd6b1c372ad24000000000000000000000000c01ab97ec9371157de1fc7a5341f7b899894d632000000000000000000000000c654972dd50bf174629a5ce12fae7849100a073d00000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000001f40