Files
atomic-swap/ethereum/consts.go
2023-06-17 04:30:20 -05:00

22 lines
715 B
Go

package contracts
// Gas prices for our operations. Most of these are set by the highest value we
// ever see in a test, so you would need to adjust upwards a little to use as a
// gas limit. We use these values to estimate minimum required balances.
const (
MaxNewSwapETHGas = 50639
MaxNewSwapTokenGas = 87369
MaxSetReadyGas = 32054
MaxClaimETHGas = 43349
MaxClaimTokenGas = 48416
MaxRefundETHGas = 43132
MaxRefundTokenGas = 48327
MaxTokenApproveGas = 47000 // 46223 with our contract
)
// constants that are interesting to track, but not used by swaps
const (
maxSwapCreatorDeployGas = 1179944
maxTestERC20DeployGas = 932965 // using long token names or symbols will increase this
)