StargateFacet

Verified contract

Implementation

Active on Base with 0 txns
Deployed by via 0x422a6b96 at 5639035
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 4 additional slots

No balances found for "StargateFacet"

No transactions found for "StargateFacet"


Functions
Getter at block 22900698
INTERDELIMITER(view returns (uint8)
59
getStargateBasicBeneficiary(view returns (address)
0x0000000000000000000000000000000000000000
getStargateBasicFee(view returns (uint256)
0
getTransferGas(view returns (uint256)
30000
Read-only
decodeStargatePayload(bytes stargatePayloadpure returns (struct ISoNormalizedSoData soDatastruct LibSwapNormalizedSwapData[] swapDataDst)
encodeStargatePayload(struct ISoNormalizedSoData soDatastruct LibSwapNormalizedSwapData[] swapDataDstpure returns (bytes)
estimateStargateFinalAmount(struct StargateFacetStargateData stargateDatauint256 amountview returns (uint256)
getAmountBeforeSoFee(uint256 amountview returns (uint256)
getSgReceiveForGasPayload(struct ISoNormalizedSoData soDataNostruct LibSwapNormalizedSwapData[] swapDataDstNopure returns (bytes)
getStargateFee(struct ISoNormalizedSoData soDataNostruct StargateFacetStargateData stargateDatastruct LibSwapNormalizedSwapData[] swapDataDstNoview returns (uint256)
getStargateSoFee(uint256 amountview returns (uint256)
State-modifying
executeAndCheckSwaps(struct ISoSoData soDatastruct LibSwapSwapData[] swapDatareturns (uint256)
executeAndCheckSwapsV2(struct ISoSoData soDatastruct LibSwapSwapData[] swapDatareturns (uint256)
initStargate(address stargateuint16 chainId
libSwap(bytes32 transactionIdstruct LibSwapSwapData _swapData
remoteSoSwap(address tokenuint256 amountstruct ISoSoData soDatastruct LibSwapSwapData[] swapDataDst
setAllowedAddress(address routerbool isAllowed
sgReceive(uint16bytesuint256address tokenuint256 amountbytes payload
sgReceiveForGas(struct ISoNormalizedSoData soDataNouint256 dstStargatePoolIdstruct LibSwapNormalizedSwapData[] swapDataDstNo
soSwapViaStargate(struct ISoNormalizedSoData soDataNostruct LibSwapNormalizedSwapData[] swapDataSrcNostruct StargateFacetStargateData stargateDatastruct LibSwapNormalizedSwapData[] swapDataDstNopayable 
Events
SetAllowedList(address routerbool isAllowed
SoTransferCompleted(bytes32 indexed transactionIduint256 receiveAmount
SoTransferFailed(bytes32 indexed transactionIdstring revertReasonbytes otherReason
SoTransferStarted(bytes32 indexed transactionId
StargateInitialized(address stargateuint256 chainId
Constructor

This contract contains no constructor objects.

Fallback and receive

This contract contains no fallback and receive objects.

Errors
CannotBridgeToSameNetwork(
ContractCallNotAllowed(
InvalidAmount(
InvalidConfig(
InvalidContract(
NativeAssetTransferFailed(
NoSwapDataProvided(
NoSwapFromZeroBalance(
NoTransferToNullAddress(
NotSupportedSwapRouter(
NullAddrIsNotAValidSpender(
NullAddrIsNotAnERC20Token(
ReentrancyError(