SoDiamond

Verified contract

Proxy

Active on Ethereum with 2,528 txns
Deployed by via 0xa27842a3 at 15190132
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 4 additional slots
-
variable spans 1 additional slot
-
variable spans 4 additional slots
-
variable spans 4 additional slots
Native
Value $2.37
ERC-20
Value $0.01
ERC-20
Value $0.01
ERC-20
Value $0
ERC-20
Value $0
ERC-20
Value $0
ERC-20
Value $0
0x1a8587978f481dada70bcd28849ef96ed40f1cbd376426cdf1a874fac361d57b
0xcfb44c67fde0cb7a71cf2faf6a228d917b243f0a3e471d70597192d4e77ff331
From
0xf95b7d1fca71a531126fa4c5beae60847f8b82b2c90d9b013f9a6460cc088d8f
0x55e8adea2cf71e9b760beb98d40b38e84cd58caa1b95a617eee5427f1deccc03
0x11c379c80a3932905f3ed45964beaa6b0b506228420c19cab2f8510c2db55fc0
0x6487094e8a8d8cfd573e9d628c850b37f4e7597be7ff6ce2a9f40f282e41d504
0xf531e257e2d7fcbcd4dc7df600faa99c5ed849a029a6c8154ea3f558315e49f4
0xb098413f833a90b794f1d61b5549ec2dc955656bd1b02b6e241d28b570ab3f83
0xe5d33ba571f41a3f3f0fea9bb33ef66f08f2c0f03e52f3ad0885b421f5c6d5a4
0x0398dd8c9c05a9719231f086085d083ff1e43ab336be0bb1e033e8e6c0b9a39a

Functions
Getter at block 20888519
INTERDELIMITER(view returns (uint8)
59
getTransferGas(view returns (uint256)
40000
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
constructor(address _contractOwneraddress _diamondCutFacet
Fallback and receive
fallback(
receive(
Errors
CannotBridgeToSameNetwork(
ContractCallNotAllowed(
InvalidAmount(
InvalidConfig(
InvalidContract(
NativeAssetTransferFailed(
NoSwapDataProvided(
NoSwapFromZeroBalance(
NoTransferToNullAddress(
NotSupportedSwapRouter(
NullAddrIsNotAValidSpender(
NullAddrIsNotAnERC20Token(
ReentrancyError(