mirror of
https://github.com/status-im/status-go.git
synced 2025-01-10 22:56:40 +00:00
68464d949c
- router logic splitted into two more logical functions - locked amount validation improved - hop and swap processors cached data kept per from/to chain and from/to token - Clear function which clears the local cache is added - process of evaluating `amountToSend` if more than a single network is locked is improved - optimized params for require approval function
35 lines
781 B
Go
35 lines
781 B
Go
package pathprocessor
|
|
|
|
import (
|
|
"math/big"
|
|
|
|
"github.com/ethereum/go-ethereum/common"
|
|
)
|
|
|
|
var (
|
|
ZeroAddress = common.Address{}
|
|
ZeroBigIntValue = big.NewInt(0)
|
|
)
|
|
|
|
const (
|
|
IncreaseEstimatedGasFactor = 1.1
|
|
SevenDaysInSeconds = 60 * 60 * 24 * 7
|
|
|
|
EthSymbol = "ETH"
|
|
SntSymbol = "SNT"
|
|
SttSymbol = "STT"
|
|
UsdcSymbol = "USDC"
|
|
HopSymbol = "HOP"
|
|
|
|
ProcessorTransferName = "Transfer"
|
|
ProcessorBridgeHopName = "Hop"
|
|
ProcessorBridgeCelerName = "CBridge"
|
|
ProcessorSwapParaswapName = "Paraswap"
|
|
ProcessorERC721Name = "ERC721Transfer"
|
|
ProcessorERC1155Name = "ERC1155Transfer"
|
|
ProcessorENSRegisterName = "ENSRegister"
|
|
ProcessorENSReleaseName = "ENSRelease"
|
|
ProcessorENSPublicKeyName = "ENSPublicKey"
|
|
ProcessorStickersBuyName = "StickersBuy"
|
|
)
|