SwitchV2

Verified contract

Active on Ethereum with 354 txns
Deployed by via 0xb61b508f at 20844821
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $0
0x9dc202ceff53ff82f33e89d38211d8281c14f8c632188240d28efba93ac8b6e0
0x854a4b446b316af5949d4c02654d0ef7d258231ce5b1b997730523129a359c49
0x42109215e0afd390024a0a8db12b67990c7e8efeea6194f57965f0e9874cbb65
0xc1c9cffde6492434ae737c706817d6e2037aba1907d70c56906b53da34ce5ee1
0xf9cc2efac0cf246770d4b37999d09fb5b434d41dcb253828da31b60bb057668f
0x2395a7cb2c00e54df0f44f4b5991b3b04238ae125d83d4267972ccd6e4fd148b
0x31004d52c985f7f037b19c92b52ffae3b3f0a922ac11dcb06b526c76b12babbc
0xba2ec425e007548dee1e15ef731508384590b96e0fc76fb5266dc25b9a06bb46
0x72c26987ec8f73c89c53e22f7fdd16a1c5bb10f5dddf886e74f179d3a05e3b54
0x8eba05ba565cb483dc8b0985a03bf95dc3883d7481e54ae3beb787c1fb4c0bbe

Functions
Getter at block 21245803
ETH_ADDRESS(view returns (address)
0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
FEE_BASE(view returns (uint256)
10000
ZERO_ADDRESS(view returns (address)
0x0000000000000000000000000000000000000000
defaultSwingCut(view returns (uint256)
1500
dexCount(view returns (uint256)
3
feeCollector(view returns (address)
0x28b9089b5f2724c1898e7dbb04a96c8c177fe46d
otherToken(view returns (address)
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
owner(view returns (address)
0x13c3418ee44270382b85c2865133c0ffacead6c7
pathCount(view returns (uint256)
2
pathSplit(view returns (uint256)
2
reward(view returns (address)
0x13c3418ee44270382b85c2865133c0ffacead6c7
switchEvent(view returns (address)
0x410f724847c92bc3cdacbcd4922f1d7833ec280a
switchView(view returns (address)
0x6b4aafe0a2c03b223b73a681b544b1617a976ccb
weth(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Read-only
addressInAllowlist(address address_view returns (bool)
allowlist(addressview returns (bool)
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
addToAllowlist(address address_
addToAllowlistBatch(address[] addresses
removeFromAllowlist(address address_
removeFromAllowlistBatch(address[] addresses
renounceOwnership(
setDefaultSwingCut(uint256 _defaultSwingCut
setFactories(address[] _factories
setFeeCollector(address _feeCollector
setOtherToken(address _otherToken
setPathCount(uint256 _pathCount
setPathSplit(uint256 _pathSplit
setReward(address _reward
setSwitchEvent(address _switchEvent
setWETH(address _weth
swap(struct SwitchV2SwapArgs swapArgspayable returns (uint256 returnAmount)
swapWithAggregator(address fromTokenaddress destTokenuint256 amountaddress partneruint256 partnerFeeRateaddress recipientbytes aggregatorInfopayable 
transferOwnership(address newOwner
transferToken(address tokenuint256 amountaddress recipient
Events
DefaultSwingCutSet(uint256 defaultSwingCut
FactoriesSet(address[] _factories
FeeCollectorSet(address feeCollector
OtherTokenSet(address _otherToken
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
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 _feeCollector
Fallback and receive
fallback(
Errors
Forbidden(