LinkedPool

Verified contract

Active on Ethereum with 8 txns
Deployed by via 0xf034d83c at 18521777
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $0
ERC-20
Value $0
0xb0aaa531a9f93b47e651658189b286375cd0b35bb39646c8a9270683d6820d6d
0x83c20127254215fdd8fa687d2bcc2beccb38da118e170d4b68454447f092ca77
0x3483d243ca4be2c64fbb3796637f39971f666d1664c691a3659b264d1e03981e
0xc36da29ba67993bbc5362588f127061e17d972c95ff5894a4e30a3702985832e
0xef7bf3d1a5df7d64ec35b7ed28c1873ea093549bc7b95a75799982cc6a4b7c53
0xd4aa49ba49e35cfe42a1e87358bd59bdd195928b42f8fbc09e86c412523e9e00
0xa8f6d615b8b7b50fa99f9223d8c75c853091216279bb0a13ced419452a0ec55e
0x9404a963a1060e901d108a58ed44a3f176f03d73cc1f73d4e48e027e8e30b3ba

Functions
Getter at block 21317273
owner(view returns (address)
0x0fea3e5840334fc758a3decf14546bfdfbef5cd3
tokenNodesAmount(view returns (uint256)
11
Read-only
areConnectedTokens(address tokenInaddress tokenOutview returns (bool areConnected)
calculateSwap(uint8 nodeIndexFromuint8 nodeIndexTouint256 dxview returns (uint256 amountOut)
findBestPath(address tokenInaddress tokenOutuint256 amountInview returns (uint8 nodeIndexFromBestuint8 nodeIndexToBestuint256 amountOutBest)
getAttachedPools(uint8 indexview returns (address[] pools)
getNodeParent(uint256 nodeIndexview returns (uint256 parentIndexaddress parentPool)
getPoolModule(address poolview returns (address)
getToken(uint8 indexview returns (address token)
getTokenIndexes(address tokenview returns (uint256[] nodes)
tokenIndexes(addressaddressview returns (uint8)
State-modifying
addPool(uint256 nodeIndexaddress pooladdress poolModule
renounceOwnership(
swap(uint8 nodeIndexFromuint8 nodeIndexTouint256 dxuint256 minDyuint256 deadlinereturns (uint256 amountOut)
transferOwnership(address newOwner
updatePoolModule(address pooladdress newPoolModule
Events
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
PoolAdded(uint256 parentIndexaddress pooladdress poolModule
PoolModuleUpdated(address pooladdress oldPoolModuleaddress newPoolModule
TokenNodeAdded(uint256 childIndexaddress tokenaddress parentPool
TokenSwap(address indexed buyeruint256 tokensSolduint256 tokensBoughtuint128 soldIduint128 boughtId
Constructor
constructor(address bridgeTokenaddress owner_
Fallback and receive

This contract contains no fallback and receive objects.

Errors
LinkedPool__DeadlineExceeded(uint256 timestampuint256 deadline
LinkedPool__EmptyPoolAddress(
LinkedPool__EqualSwapIndexes(uint8 index
LinkedPool__MinDyNotMet(uint256 amountOutuint256 minDy
TokenTree__DifferentTokenLists(
TokenTree__IndexOutOfRange(uint256 index
TokenTree__NodeTokenNotInPool(
TokenTree__PoolAlreadyAttached(
TokenTree__PoolAlreadyOnRootPath(
TokenTree__SwapPoolUsedTwice(address pool
TokenTree__TooManyNodes(
TokenTree__TooManyPools(
TokenTree__UnknownPool(