2 txs
3 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)
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
FailedToSendETH
error FailedToSendETH()
InvalidFeeBasisPoints
error InvalidFeeBasisPoints()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
ZeroAddress
error ZeroAddress()
creation bytecode
0x60a03461013157601f620015e838819003918201601f19168301916001600160401b038311848410176101365780849260a094604052833981010312610131576100488161014c565b906100556020820161014c565b906100626040820161014c565b926080606083015192015192331561011857600080546001600160a01b03198082163390811784556040519891956001600160a01b039592948694859391908416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a316608052168360015416176001551690600254161760025560035560045561148790816200016182396080518181816101620152818161022b0152818161063a01528181610a3e0152610e6f0152f35b604051631e4fbdf760e01b815260006004820152602490fd5b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b03821682036101315756fe60806040818152600480361015610021575b505050361561001f57600080fd5b005b600092833560e01c908163095b710d146110a05750806361d027b314611077578063715018a61461101d5780637f24e6ec14610e2757806385f377ca14610dfe5780638da5cb5b14610dd65780639258b71f14610d04578063b79c48e5146109f6578063b8606eef146109d7578063bd9b2084146105c7578063c038847a146101b2578063cfa498a314610195578063d82649201461014d5763f2fde38b036100115734610149576020366003190112610149576100dd6110bc565b906100e66113b8565b6001600160a01b0391821692831561013357505082546001600160a01b0319811683178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b505034610191578160031936011261019157517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b5080fd5b505034610191578160031936011261019157602090516127108152f35b50919034610191576101c3366110d7565b83516323b872dd60e01b81523381880190815230602082810191909152604082018590529297929593946001600160a01b038082169591949193919290919088908290819060600103818c8a5af18015610542576105aa575b50825163095ea7b360e01b81527f000000000000000000000000000000000000000000000000000000000000000082166001600160a01b038116848301908152602081018990529096919089908290819060400103818d865af180156105a057610573575b5083519061028e82611101565b6002825284368a8401376102a182611174565b5283516315ab88c960e31b8082529190898186818b5afa908115610569579189918c93849161054c575b50856102d683611197565b911690526102fa87519d8e9384936318cbafe560e01b8552429230928b870161137f565b0381838a5af1998a1561054257899a61051e575b50895160001981019a908b1161050b5761032c8a9b610332926111a7565b516113f7565b939091610343838560015416611426565b610351858560025416611426565b479161035d8333611426565b865163c45a015560e01b81528b8183818d5afa908115610501578d916104e4575b5087518381528c8184818e5afa9d8e156104d957918d9e916103da9b9c9d9e93926104ba575b50895163e6a4390560e01b81526001600160a01b03808e16868301908152931660208401529a8b9283918a918391604090910190565b0392165afa978d89156104af57908d93929199610490575b508751809b819382525afa978815610486577f1854e126c531b464931f921ac9c5aaca843aa7a189df01c55e9ce646881f93ab9a8c99610451575b505061044b969798836001541693600254169551998a99338b61130a565b0390a180f35b61044b989950908161047792903d1061047f575b61046f8183611133565b810190611155565b97963861042d565b503d610465565b85513d8d823e3d90fd5b6104a8919950833d851161047f5761046f8183611133565b97386103f2565b8851903d90823e3d90fd5b6104d2919250833d851161047f5761046f8183611133565b90386103a4565b8951903d90823e3d90fd5b6104fb91508c8d3d1061047f5761046f8183611133565b3861037e565b88513d8f823e3d90fd5b634e487b7160e01b8a526011845260248afd5b61053b919a503d808b833e6105338183611133565b8101906111de565b983861030e565b84513d8b823e3d90fd5b61056391508c8d3d1061047f5761046f8183611133565b386102cb565b86513d8d823e3d90fd5b61059290893d8b11610599575b61058a8183611133565b810190611367565b5038610281565b503d610580565b85513d8c823e3d90fd5b6105c090883d8a116105995761058a8183611133565b503861021c565b5082346109d4576105d7366110d7565b85516323b872dd60e01b81523386820190815230602082810191909152604082018490529397939493926001600160a01b03929091838616919087908290819060600103818b865af180156109ca576109ad575b50835163095ea7b360e01b81527f000000000000000000000000000000000000000000000000000000000000000084166001600160a01b0381168a8301908152602081018590529093919088908290819060400103818c875af180156109a357610986575b5084519161069d83611101565b600283528536898501376106b083611174565b5284516315ab88c960e31b8082529a9088818c81885afa90811561097c578b969594928b949261070c92869161095f575b50876106ec86611197565b911690528851632512eca560e11b8152978894859442933093870161137f565b038183855af1928315610955578793610939575b5082516000198082019a918b116109265761073f61032c8b9c876111a7565b959093610750858760015416611426565b61075e878760025416611426565b479361076a8533611426565b885163c45a015560e01b81529d8b908f9081855afa9d8e1561091c578c9e6108fd575b5088518181528b818f81865afa9081156108f3579a8e9f8e9f9c928e9f93839f94916108d6575b508c5163e6a4390560e01b81526001600160a01b039384169e81019e8f52921660208e0152909b8c91908290036040019082908b165afa998a156108cc57908e8d928f9c6108ad575b508a518094819382525afa9a8b156108a3578c9b610884575b50508051918201918211610871579161085a7f1854e126c531b464931f921ac9c5aaca843aa7a189df01c55e9ce646881f93ab9a999896949261044b9896946111a7565b51836001541693600254169551998a99338b61130a565b634e487b7160e01b8b5260118c5260248bfd5b61089b929b50803d1061047f5761046f8183611133565b988c80610816565b88513d8e823e3d90fd5b6108c5919c50833d851161047f5761046f8183611133565b9a386107fd565b89513d8f823e3d90fd5b6108ed9150843d861161047f5761046f8183611133565b386107b4565b8a513d8f823e3d90fd5b610915919e508b3d8d1161047f5761046f8183611133565b9c8e61078d565b89513d8e823e3d90fd5b634e487b7160e01b895260118a52602489fd5b61094e9193503d8089833e6105338183611133565b9189610720565b84513d89823e3d90fd5b61097691508c8d3d1061047f5761046f8183611133565b8f6106e1565b87513d8c823e3d90fd5b61099c90883d8a116105995761058a8183611133565b508a610690565b86513d8b823e3d90fd5b6109c390873d89116105995761058a8183611133565b508961062b565b85513d8a823e3d90fd5b80fd5b5050346101915781600319360112610191576020906003549051908152f35b5082826003193601126109d457610a0b6110bc565b92805193610a1885611101565b6002855260209180368488013780516315ab88c960e31b808252966001600160a01b03917f000000000000000000000000000000000000000000000000000000000000000083169086818a81855afa9081156109ca5791610af891899594938691610ce7575b5084610a8985611174565b91169052610a9683611197565b8488169052610aa4346113f7565b959093610ab5858760015416611426565b610ac3878760025416611426565b610ad687610ad187346111bb565b6111bb565b8c8951809681948293637ff36ab560e01b845242913391602435908601611297565b0391855af19182156109a3578992610ccb575b50855163c45a015560e01b81529a888c8c81855afa9b8c1561097c578a9c610cac575b50865181815289818d81865afa908115610ca257988c9d8b9c9d92888f94610b8f9d859f9693610c83575b508c5163e6a4390560e01b81526001600160a01b03938416918101918252929094166020850152909b8c93849291839160400190565b0392165afa978815610c7957908a918c99610c5a575b508c88518094819382525afa988915610c50578a99610c31575b50508051600019810191908211610c1e5791610c0561044b9694927f1854e126c531b464931f921ac9c5aaca843aa7a189df01c55e9ce646881f93ab9a999896946111a7565b518260015416926002541694519889983491338b61130a565b634e487b7160e01b8a5260118b5260248afd5b610c48929950803d1061047f5761046f8183611133565b968a80610bbf565b86513d8c823e3d90fd5b610c72919950823d841161047f5761046f8183611133565b978d610ba5565b87513d8d823e3d90fd5b610c9b919350863d881161047f5761046f8183611133565b9138610b59565b88513d8d823e3d90fd5b610cc4919c50893d8b1161047f5761046f8183611133565b9a8c610b2e565b610ce09192503d808b833e6105338183611133565b908b610b0b565b610cfe9150893d8b1161047f5761046f8183611133565b8c610a7e565b503461014957608036600319011261014957610d1e6110bc565b916024356001600160a01b0381811691829003610dd2576044359260643595610d456113b8565b6001549083821615610dc2576002549284841615610db357612710808811610da3578911610d9457506bffffffffffffffffffffffff60a01b9384911691161760015516176002556003555580f35b5163a724e54f60e01b81528790fd5b815163a724e54f60e01b81528990fd5b5163d92e233d60e01b81528790fd5b825163d92e233d60e01b81528790fd5b8580fd5b505034610191578160031936011261019157905490516001600160a01b039091168152602090f35b50503461019157816003193601126101915760025490516001600160a01b039091168152602090f35b5082826003193601126109d457610e3c6110bc565b92805193610e4985611101565b6002855260209180368488013780516315ab88c960e31b808252966001600160a01b03917f000000000000000000000000000000000000000000000000000000000000000083169086818a81855afa9081156109ca5791610f2491899594938691611000575b5084610eba85611174565b91169052610ec783611197565b8488169052610ed5346113f7565b959093610ee6858760015416611426565b610ef4878760025416611426565b610f0287610ad187346111bb565b8c895180968194829363fb3bdb4160e01b845242913391602435908601611297565b0391855af19182156109a3578992610fe4575b5047610fbf575b855163c45a015560e01b81529a888c8c81855afa9b8c1561097c578a9c610cac5750865181815289818d81865afa908115610ca257988c9d8b9c9d92888f94610b8f9d859f9693610c8357508c5163e6a4390560e01b81526001600160a01b03938416918101918252929094166020850152909b8c93849291839160400190565b8880808047335af1610fcf6112ca565b50610f3e5785516338822c1360e11b81528a90fd5b610ff99192503d808b833e6105338183611133565b908b610f37565b6110179150893d8b1161047f5761046f8183611133565b8c610eaf565b83346109d457806003193601126109d4576110366113b8565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b50503461019157816003193601126101915760015490516001600160a01b039091168152602090f35b9250503461014957826003193601126101495760209250548152f35b600435906001600160a01b03821682036110d257565b600080fd5b60609060031901126110d2576004356001600160a01b03811681036110d257906024359060443590565b6060810190811067ffffffffffffffff82111761111d57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761111d57604052565b908160209103126110d257516001600160a01b03811681036110d25790565b8051156111815760200190565b634e487b7160e01b600052603260045260246000fd5b8051600110156111815760400190565b80518210156111815760209160051b010190565b919082039182116111c857565b634e487b7160e01b600052601160045260246000fd5b9060209081838203126110d257825167ffffffffffffffff938482116110d2570181601f820112156110d257805193841161111d578360051b906040519461122885840187611133565b855283808601928201019283116110d2578301905b82821061124b575050505090565b8151815290830190830161123d565b90815180825260208080930193019160005b82811061127a575050505090565b83516001600160a01b03168552938101939281019260010161126c565b906060926112b69196959496835260806020840152608083019061125a565b6001600160a01b0390951660408201520152565b3d15611305573d9067ffffffffffffffff821161111d57604051916112f9601f8201601f191660200184611133565b82523d6000602084013e565b606090565b6001600160a01b039182168152918116602083015291821660408201526060810192909252608082019290925260a081019290925291821660c082015260e081019290925291821661010082015291166101208201526101400190565b908160209103126110d2575180151581036110d25790565b91926080936113a492979695978452602084015260a0604084015260a083019061125a565b6001600160a01b0390951660608201520152565b6000546001600160a01b031633036113cc57565b60405163118cdaa760e01b8152336004820152602490fd5b818102929181159184041417156111c857565b61142361140d91612710928391600354906113e4565b049161141b600454846113e4565b0480926111bb565b91565b600080809381935af16114376112ca565b501561143f57565b6040516338822c1360e11b8152600490fdfea2646970667358221220494d272ddcd86f97d41b8ea91f271a7dde4731739f220a5b599eb32c39c5652764736f6c634300081700330000000000000000000000004752ba5dbc23f44d87826276bf6fd6b1c372ad24000000000000000000000000c01ab97ec9371157de1fc7a5341f7b899894d632000000000000000000000000c654972dd50bf174629a5ce12fae7849100a073d00000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000001f40