BCoW AMM 50AAVE-50ETH

Verified contract

Active on Ethereum with 148 txns
Deployed by via 0x9f9fdc5a at 20484360
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $22,289.15
ERC-20
Value $22,243.45
 (#0)
ERC-1555
--
0x43ff031ab0ee49b136ba56ef1f91c0365de9dbebcb3497415fddea63ded7541c
0x7f73344014252d1b949fe236da30498fd2401c92b9dc595e6680ed113b80bfe2
0xb2ab8105214b56334b03c8d39a679ee8e051d58d04fef97cc70592cebc906e4b
0x0a498d4c0c2fb82717bdf1bbe1dc0694c572d0a7e8327259c51b3bdbaf19c9bd
From
0xb3531838ddd6e7ebf18c4fcf91289af5dec1407e0c10bd482ee16108557fa49d
0x70f688c7e39b4f7661dca13484cd8a59b05ebcaed749838684f86fcb81f80b07
0x377e7bbd8921f371c72e481cf92ca4ac39940dc4d5507279d0da210cb22bbce7
0xafd0bc757ee7023413ee20e393cf714ff7b104ebcb8027c6dabbc791f6834cea
0xad8f655407b005080e1fbc741451ce285aed4ae812e8e628dce7dcf9f41d6268
0x4642ccec25a071acebc9d837c1c7151dedc3143b57f3cee0b28c602cf3944804

Functions
Getter at block 21423395
APP_DATA(view returns (bytes32)
0x362e5182440b52aa8fffe70a251550fbbcbca424740fe5a14f59bf0c1b06fe1d
BONE(view returns (uint256)
1000000000000000000
BPOW_PRECISION(view returns (uint256)
100000000
EXIT_FEE(view returns (uint256)
0
FACTORY(view returns (address)
0xf76c421bab7df8548604e60deccce50477c10462
INIT_POOL_SUPPLY(view returns (uint256)
100000000000000000000
MAX_BOUND_TOKENS(view returns (uint256)
8
MAX_BPOW_BASE(view returns (uint256)
1999999999999999999
MAX_FEE(view returns (uint256)
999999000000000000
MAX_IN_RATIO(view returns (uint256)
500000000000000000
MAX_ORDER_DURATION(view returns (uint32)
300
MAX_OUT_RATIO(view returns (uint256)
333333333333333334
MAX_TOTAL_WEIGHT(view returns (uint256)
50000000000000000000
MAX_WEIGHT(view returns (uint256)
50000000000000000000
MIN_BALANCE(view returns (uint256)
1000000
MIN_BOUND_TOKENS(view returns (uint256)
2
MIN_BPOW_BASE(view returns (uint256)
1
MIN_FEE(view returns (uint256)
1000000000000
MIN_WEIGHT(view returns (uint256)
1000000000000000000
SOLUTION_SETTLER(view returns (address)
0x9008d19f58aabd9ed0d60971565aa8510560ab41
SOLUTION_SETTLER_DOMAIN_SEPARATOR(view returns (bytes32)
0xc078f884a2676e1345748b1feace7b0abee5d00ecadb6e574dcdd109a63e8943
VAULT_RELAYER(view returns (address)
0xc92e8bdf79f0507f65a392b0ab4667716bfe0110
decimals(view returns (uint8)
18
getController(view returns (address)
0xec576a26335de1c360d2fc9a68cba6ba37af4a13
getCurrentTokens(view returns (address[])
[0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9, 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2]
getFinalTokens(view returns (address[])
[0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9, 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2]
getNumTokens(view returns (uint256)
2
getSwapFee(view returns (uint256)
999900000000000000
getTotalDenormalizedWeight(view returns (uint256)
2000000000000000000
isFinalized(view returns (bool)
true
name(view returns (string)
BCoW AMM 50AAVE-50ETH
symbol(view returns (string)
BCoW-50AAVE-50ETH
totalSupply(view returns (uint256)
3712156260536992762970
Read-only
allowance(address owneraddress spenderview returns (uint256)
balanceOf(address accountview returns (uint256)
calcInGivenOut(uint256 tokenBalanceInuint256 tokenWeightInuint256 tokenBalanceOutuint256 tokenWeightOutuint256 tokenAmountOutuint256 swapFeepure returns (uint256 tokenAmountIn)
calcOutGivenIn(uint256 tokenBalanceInuint256 tokenWeightInuint256 tokenBalanceOutuint256 tokenWeightOutuint256 tokenAmountInuint256 swapFeepure returns (uint256 tokenAmountOut)
calcSpotPrice(uint256 tokenBalanceInuint256 tokenWeightInuint256 tokenBalanceOutuint256 tokenWeightOutuint256 swapFeepure returns (uint256 spotPrice)
getBalance(address tokenview returns (uint256)
getDenormalizedWeight(address tokenview returns (uint256)
getNormalizedWeight(address tokenview returns (uint256)
getSpotPrice(address tokenInaddress tokenOutview returns (uint256)
getSpotPriceSansFee(address tokenInaddress tokenOutview returns (uint256)
isBound(address tokenview returns (bool)
isValidSignature(bytes32 orderHashbytes signatureview returns (bytes4 magicValue)
verify(struct GPv2OrderData orderview 
State-modifying
approve(address spenderuint256 valuereturns (bool)
bind(address tokenuint256 balanceuint256 denorm
commit(bytes32 orderHash
decreaseApproval(address spenderuint256 amountreturns (bool success)
exitPool(uint256 poolAmountInuint256[] minAmountsOut
finalize(
increaseApproval(address spenderuint256 amountreturns (bool success)
joinPool(uint256 poolAmountOutuint256[] maxAmountsIn
setController(address newController
setSwapFee(uint256 swapFee
swapExactAmountIn(address tokenInuint256 tokenAmountInaddress tokenOutuint256 minAmountOutuint256 maxPricereturns (uint256 tokenAmountOutuint256 spotPriceAfter)
swapExactAmountOut(address tokenInuint256 maxAmountInaddress tokenOutuint256 tokenAmountOutuint256 maxPricereturns (uint256 tokenAmountInuint256 spotPriceAfter)
transfer(address touint256 valuereturns (bool)
transferFrom(address fromaddress touint256 valuereturns (bool)
unbind(address token
Events
Approval(address indexed owneraddress indexed spenderuint256 value
COWAMMPoolCreated(address indexed bCoWPool
LOG_CALL(bytes4 indexed sigaddress indexed callerbytes data anonymous
LOG_EXIT(address indexed calleraddress indexed tokenOutuint256 tokenAmountOut
LOG_JOIN(address indexed calleraddress indexed tokenInuint256 tokenAmountIn
LOG_SWAP(address indexed calleraddress indexed tokenInaddress indexed tokenOutuint256 tokenAmountInuint256 tokenAmountOut
Transfer(address indexed fromaddress indexed touint256 value
Constructor
constructor(address cowSolutionSettlerbytes32 appDatastring namestring symbol
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AddressEmptyCode(address target
AddressInsufficientBalance(address account
AppDataDoesNotMatch(
BCoWPool_FeeMustBeZero(
BCoWPool_InvalidBalanceMarker(
BCoWPool_InvalidOperation(
BCoWPool_OrderValidityTooLong(
BCoWPool_ReceiverIsNotBCoWPool(
BNum_AddOverflow(
BNum_BPowBaseTooHigh(
BNum_BPowBaseTooLow(
BNum_DivInternal(
BNum_DivZero(
BNum_MulOverflow(
BNum_SubUnderflow(
BPool_AddressZero(
BPool_BalanceBelowMinimum(
BPool_CallerIsNotController(
BPool_FeeAboveMaximum(
BPool_FeeBelowMinimum(
BPool_InvalidPoolAmountIn(
BPool_InvalidPoolRatio(
BPool_InvalidTokenAmountIn(
BPool_InvalidTokenAmountOut(
BPool_PoolAmountInAboveMaxPoolAmountIn(
BPool_PoolAmountOutBelowMinPoolAmountOut(
BPool_PoolIsFinalized(
BPool_PoolNotFinalized(
BPool_Reentrancy(
BPool_SpotPriceAboveMaxPrice(
BPool_SpotPriceAfterBelowSpotPriceBefore(
BPool_SpotPriceBeforeAboveTokenRatio(
BPool_TokenAlreadyBound(
BPool_TokenAmountInAboveMaxAmountIn(
BPool_TokenAmountInAboveMaxRatio(
BPool_TokenAmountOutAboveMaxOut(
BPool_TokenAmountOutBelowMinAmountOut(
BPool_TokenAmountOutBelowMinOut(
BPool_TokenNotBound(
BPool_TokensAboveMaximum(
BPool_TokensBelowMinimum(
BPool_TotalWeightAboveMaximum(
BPool_WeightAboveMaximum(
BPool_WeightBelowMinimum(
CommitOutsideOfSettlement(
ERC20InsufficientAllowance(address spenderuint256 allowanceuint256 needed
ERC20InsufficientBalance(address senderuint256 balanceuint256 needed
ERC20InvalidApprover(address approver
ERC20InvalidReceiver(address receiver
ERC20InvalidSender(address sender
ERC20InvalidSpender(address spender
FailedInnerCall(
OrderDoesNotMatchCommitmentHash(
OrderDoesNotMatchMessageHash(
SafeERC20FailedOperation(address token