Switch

Verified contract

Active on Ethereum with 52 txns
Deployed by via 0xc896d8ea at 18268651
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Native
Value $3,808.62
ERC-20
Value $51.69
ERC-20
Value $21.11
ERC-20
Value $2
ERC-20
Value $0
0x7e764de3a35fb8a44ec5bf49b05ae044acf9c4bb803618831f9d06299d4e7b46
0xfe0c42a8038426285e4307eeba50fb6b79655f1cf2cd803f4af13a17f7de586f
0xd20d98f04d572466af91da35008a3b9ab8769160dc073e24b094f804ba9de740
0x3023ce1f1c6cc7371aa0f08b56a585d7c313e9b45376a25c8d8b1d7ed704bccc
0x3d8064cddcbf9d10604f31e44841b9cfd32e154576e51d2d7bb94326fb4b6f28
0x0e59c208ad04c5758f7e4777565529fba83c70b72940abc4f8ca602a85d93c05
0x5fbc988ca0cb75b9370bd4153eb6d8d90c6f5a80e5a2b5c9c536a2e60c15586e
0x56557a621412db04b5e5681afd463cc8c8530e524ba1df9051754512f29e2c10
0xc9d37220d9a4659369fddf22d551f797d3250d643c979538a0d3fbc4ead0677d
0xa80a806f3b0a875f7a2763f4f0f54f774d4396d01ba7c77628231df40f7feb39

Functions
Getter at block 21332677
ETH_ADDRESS(view returns (address)
0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
FEE_BASE(view returns (uint256)
10000
ZERO_ADDRESS(view returns (address)
0x0000000000000000000000000000000000000000
augustusSwapper(view returns (address)
0xdef171fe48cf0115b1d80b88dc8eab59176fee57
defaultSwingCut(view returns (uint256)
1500
dexCount(view returns (uint256)
3
feeCollector(view returns (address)
0x28b9089b5f2724c1898e7dbb04a96c8c177fe46d
maxPartnerFeeRate(view returns (uint256)
1000
otherToken(view returns (address)
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
owner(view returns (address)
0xe2b6f88dcc3c95f1b0c0682eaa2efa03e1f2d6f7
paraswapProxy(view returns (address)
0x216b4b4ba9f3e719726886d34a177484278bfcae
pathCount(view returns (uint256)
2
pathSplit(view returns (uint256)
2
reward(view returns (address)
0xe2b6f88dcc3c95f1b0c0682eaa2efa03e1f2d6f7
switchEvent(view returns (address)
0x410f724847c92bc3cdacbcd4922f1d7833ec280a
switchView(view returns (address)
0x6b4aafe0a2c03b223b73a681b544b1617a976ccb
weth(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Read-only
factories(uint256view returns (address)
getExpectedReturn(address fromTokenaddress destTokenuint256 amountuint256 partsview returns (uint256 returnAmountuint256[] distribution)
getFeeInfo(uint256 amountaddress partneruint256 partnerFeeRateview returns (uint256 partnerFeeuint256 remainAmount)
getTokenBalance(address tokenview returns (uint256 amount)
State-modifying
renounceOwnership(
setAugustusSwapper(address _augustusSwapper
setDefaultSwingCut(uint256 _defaultSwingCut
setFactories(address[] _factories
setFeeCollector(address _feeCollector
setMaxPartnerFeeRate(uint256 _maxPartnerFeeRate
setOtherToken(address _otherToken
setParaswapProxy(address _paraswapProxy
setPathCount(uint256 _pathCount
setPathSplit(uint256 _pathSplit
setReward(address _reward
setSwitchEvent(address _switchEvent
setWETH(address _weth
swap(struct SwitchSwapArgs swapArgspayable returns (uint256 returnAmount)
swapWithParaswap(address fromTokenaddress destTokenuint256 amountuint256 destAmountaddress partneruint256 partnerFeeRateaddress recipientbytes callDatapayable 
transferOwnership(address newOwner
transferToken(address tokenuint256 amountaddress recipient
Events
AugustusSwapperSet(address augustusSwapper
DefaultSwingCutSet(uint256 defaultSwingCut
FactoriesSet(address[] _factories
FeeCollectorSet(address feeCollector
MaxPartnerFeeRateSet(uint256 maxPartnerFeeRate
OtherTokenSet(address _otherToken
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
ParaswapProxySet(address paraswapProxy
PathCountSet(uint256 _pathCount
PathSplitSet(uint256 _pathSplit
RewardSet(address reward
SwitchEventSet(address switchEvent
WETHSet(address _weth
Constructor
constructor(address _wethaddress _otherTokenuint256 _pathCountuint256 _pathSplitaddress[] _factoriesaddress _switchViewAddressaddress _switchEventAddressaddress _paraswapProxyaddress _augustusSwapperaddress _feeCollector
Fallback and receive
fallback(
Errors

This contract contains no error objects.