ButterRouterV3

Verified contract

Active on Ethereum with 136 txns
Deployed by via 0x8266c2b1 at 20388370
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Native
Value $0
0xc5a0d62ac02eec78329634cb19ddfc7a7e12e71afae84cc80fd36256bcfb0b10
0xa8cd3d33c0685ad2fa9e2e0f75afc11e34c2e4dc435ed3412d6b2b5e8a29f8c4
0x88a7c9aa63d598fc07ca3847520d89941b21a6be3c56f3dc86c6d8730a69a428
0x262c414aa9c8caa5e256832cc275c4e81a296ddca157dc951108a1e5c5591f93
0x3a30f4f9272b3db3cfb8ec8ad9ecc39fdcbef75ea48d0dba15590786749f73a9
0xecc6ac4e98f33f6c03e9f6efe93cf071d4a82a23599be34a967f2fbb69140aaf
0x240322c4a12e66734a1d7bb8eceded165d70a49527b65fae74521c75610f5cd4
0x75d8815e0935c2afe49bff3b28457d638ef2bc11016409297ff13247eee41169
0x3c68904bd2b0a01ce2046e3bb0a10db60da7c876f729775f5ffa6d92e89f983f
0x5a0fa64de0c0c426b898711ee5b56c377730262c471b3bfc4e897c8dc118705d

Functions
Getter at block 20851820
bridgeAddress(view returns (address)
0xfeb2b97e4efce787c08086dc16ab69e063911380
feeManager(view returns (address)
0x0000000000000000000000000000000000000000
feeReceiver(view returns (address)
0x51c700e5be790c91f14d42f85ca90aed9f2d142e
gasForReFund(view returns (uint256)
80000
maxFeeRate(view returns (uint256)
2000
maxNativeFee(view returns (uint256)
6000000000000000
owner(view returns (address)
0xdf3f1ee5baf55055980887aad79f6fe6e3302d93
pendingOwner(view returns (address)
0x0000000000000000000000000000000000000000
routerFeeRate(view returns (uint256)
0
routerFixedFee(view returns (uint256)
0
wToken(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Read-only
approved(addressview returns (bool)
funcBlackList(bytes4view returns (bool)
getAmountBeforeFee(address _tokenuint256 _amountAfterFeebytes _feeDataview returns (address feeTokenuint256 beforeAmountuint256 nativeFeeAmount)
getFee(address _inputTokenuint256 _inputAmountbytes _feeDataview returns (address feeTokenuint256 tokenFeeuint256 nativeFeeuint256 afterFeeAmount)
getFeeDetail(address _inputTokenuint256 _inputAmountbytes _feeDataview returns (struct IFeeManagerFeeDetail feeDetail)
getInputBeforeFee(address _tokenuint256 _amountAfterFeebytes _feeDataview returns (address _feeTokenuint256 _inputuint256 _fee)
State-modifying
acceptOwnership(
editFuncBlackList(bytes4 _funcbool _flag
onReceived(bytes32 _orderIdaddress _srcTokenuint256 _amountuint256 _fromChainbytes _frombytes _swapAndCall
remoteCall(struct SwapCallCallbackParam _callbackParamaddress _callTokenuint256 _amountreturns (address targetuint256 callAmount)
remoteSwap(address _srcTokenuint256 _amountuint256 _initBalancestruct SwapCallSwapParam swapParamreturns (address dstTokenuint256 dstAmount)
renounceOwnership(
rescueFunds(address _tokenuint256 _amount
setAuthorization(address[] _executorsbool _flag
setBridgeAddress(address _bridgeAddressreturns (bool)
setFee(address _feeReceiveruint256 _feeRateuint256 _fixedFee
setFeeManager(address _feeManager
setGasForReFund(uint256 _gasForReFund
setReferrerMaxFee(uint256 _maxFeeRateuint256 _maxNativeFee
setWToken(address _wToken
swapAndBridge(bytes32 _transferIdaddress _initiatoraddress _srcTokenuint256 _amountbytes _swapDatabytes _bridgeDatabytes _permitDatabytes _feeDatapayable returns (bytes32 orderId)
swapAndCall(bytes32 _transferIdaddress _initiatoraddress _srcTokenuint256 _amountbytes _swapDatabytes _callbackDatabytes _permitDatabytes _feeDatapayable 
transferOwnership(address newOwner
Events
Approve(address indexed executorbool indexed flag
CollectFee(address indexed tokenaddress indexed receiveraddress indexed integratoruint256 routerAmountuint256 integratorAmountuint256 nativeAmountuint256 integratorNativebytes32 transferId
EditFuncBlackList(bytes4 _funcbool flag
OwnershipTransferStarted(address indexed previousOwneraddress indexed newOwner
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
RemoteSwapAndCall(bytes32 indexed orderIdaddress indexed receiveraddress indexed targetaddress originTokenaddress swapTokenuint256 originAmountuint256 swapAmountuint256 callAmountuint256 fromChainuint256 toChainbytes from
SetBridgeAddress(address indexed _bridgeAddress
SetFee(address indexed receiveruint256 indexed rateuint256 indexed fixedf
SetFeeManager(address indexed _feeManager
SetGasForReFund(uint256 indexed _gasForReFund
SetReferrerMaxFee(uint256 indexed _maxFeeRateuint256 indexed _maxNativeFee
SetWrappedToken(address indexed _wToken
SwapAndBridge(address indexed referreraddress indexed initiatoraddress indexed frombytes32 transferIdbytes32 orderIdaddress originTokenaddress bridgeTokenuint256 originAmountuint256 bridgeAmountuint256 toChainbytes to
SwapAndCall(address indexed referreraddress indexed initiatoraddress indexed frombytes32 transferIdaddress originTokenaddress swapTokenuint256 originAmountuint256 swapAmountaddress receiveraddress targetuint256 callAmount
Constructor
constructor(address _bridgeAddressaddress _owneraddress _wToken
Fallback and receive
receive(
Errors
BRIDGE_ONLY(
CALL_BACK_FAIL(
CALL_FUNC_BLACK_LIST(
DATA_EMPTY(
EMPTY(
FEE_MISMATCH(
NATIVE_VALUE_OVERSPEND(
NOT_CONTRACT(
NO_APPROVE(
RECEIVE_LOW(
SELF_ONLY(
SWAP_FAIL(
SWAP_SAME_TOKEN(
UNSUPPORT_DEX_TYPE(
ZERO_ADDRESS(
ZERO_IN(