add_liquidity : TxDescriptor < { amount1_desired : bigint ; amount1_min : bigint ; amount2_desired : bigint ; amount2_min : bigint ; asset1 : { interior : Enum < { Here : undefined ; X1 : Enum < { AccountId32 : { id : FixedSizeBinary < 32 > ; network ?: Enum < (...)
> } ; AccountIndex64 : { index : bigint ; network ?: Enum < (...)
> } ; AccountKey20 : { key : FixedSizeBinary < 20 > ; network ?: Enum < (...)
> } ; GeneralIndex : bigint ; GeneralKey : { data : FixedSizeBinary < 32 > ; length : number } ; GlobalConsensus : Enum < { BitcoinCash : undefined ; BitcoinCore : undefined ; ByFork : { block_hash : FixedSizeBinary < (...)
> ; block_number : bigint ; } ; ByGenesis : FixedSizeBinary < 32 > ; Ethereum : { chain_id : bigint } ; Kusama : undefined ; Polkadot : undefined ; PolkadotBulletin : undefined ; } , > ; OnlyChild : undefined ; PalletInstance : number ; Parachain : number ; Plurality : { id : XcmV3JunctionBodyId ; part : XcmV2JunctionBodyPart } ; } , > ; X2 : FixedSizeArray < 2 , Enum < { AccountId32 : { id : FixedSizeBinary < 32 > ; network ?: ...
} ; AccountIndex64 : { index : bigint ; network ?: ...
} ; AccountKey20 : { key : FixedSizeBinary < 20 > ; network ?: ...
} ; GeneralIndex : bigint ; GeneralKey : { data : FixedSizeBinary < 32 > ; length : number } ; GlobalConsensus : Enum < { BitcoinCash : undefined ; BitcoinCore : undefined ; ByFork : { block_hash : ...
; block_number : ...
} ; ByGenesis : FixedSizeBinary < (...)
> ; Ethereum : { chain_id : ...
} ; Kusama : undefined ; Polkadot : undefined ; PolkadotBulletin : undefined ; } , > ; OnlyChild : undefined ; PalletInstance : number ; Parachain : number ; Plurality : { id : XcmV3JunctionBodyId ; part : XcmV2JunctionBodyPart } ; } , > , > ; X3 : FixedSizeArray < 3 , Enum < { AccountId32 : { id : FixedSizeBinary < 32 > ; network ?: ...
} ; AccountIndex64 : { index : bigint ; network ?: ...
} ; AccountKey20 : { key : FixedSizeBinary < 20 > ; network ?: ...
} ; GeneralIndex : bigint ; GeneralKey : { data : FixedSizeBinary < 32 > ; length : number } ; GlobalConsensus : Enum < { BitcoinCash : undefined ; BitcoinCore : undefined ; ByFork : { block_hash : ...
; block_number : ...
} ; ByGenesis : FixedSizeBinary < (...)
> ; Ethereum : { chain_id : ...
} ; Kusama : undefined ; Polkadot : undefined ; PolkadotBulletin : undefined ; } , > ; OnlyChild : undefined ; PalletInstance : number ; Parachain : number ; Plurality : { id : XcmV3JunctionBodyId ; part : XcmV2JunctionBodyPart } ; } , > , > ; X4 : FixedSizeArray < 4 , Enum < { AccountId32 : { id : FixedSizeBinary < 32 > ; network ?: ...
} ; AccountIndex64 : { index : bigint ; network ?: ...
} ; AccountKey20 : { key : FixedSizeBinary < 20 > ; network ?: ...
} ; GeneralIndex : bigint ; GeneralKey : { data : FixedSizeBinary < 32 > ; length : number } ; GlobalConsensus : Enum < { BitcoinCash : undefined ; BitcoinCore : undefined ; ByFork : { block_hash : ...
; block_number : ...
} ; ByGenesis : FixedSizeBinary < (...)
> ; Ethereum : { chain_id : ...
} ; Kusama : undefined ; Polkadot : undefined ; PolkadotBulletin : undefined ; } , > ; OnlyChild : undefined ; PalletInstance : number ; Parachain : number ; Plurality : { id : XcmV3JunctionBodyId ; part : XcmV2JunctionBodyPart } ; } , > , > ; X5 : FixedSizeArray < 5 , Enum < { AccountId32 : { id : FixedSizeBinary < 32 > ; network ?: ...
} ; AccountIndex64 : { index : bigint ; network ?: ...
} ; AccountKey20 : { key : FixedSizeBinary < 20 > ; network ?: ...
} ; GeneralIndex : bigint ; GeneralKey : { data : FixedSizeBinary < 32 > ; length : number } ; GlobalConsensus : Enum < { BitcoinCash : undefined ; BitcoinCore : undefined ; ByFork : { block_hash : ...
; block_number : ...
} ; ByGenesis : FixedSizeBinary < (...)
> ; Ethereum : { chain_id : ...
} ; Kusama : undefined ; Polkadot : undefined ; PolkadotBulletin : undefined ; } , > ; OnlyChild : undefined ; PalletInstance : number ; Parachain : number ; Plurality : { id : XcmV3JunctionBodyId ; part : XcmV2JunctionBodyPart } ; } , > , > ; X6 : FixedSizeArray < 6 , Enum < { AccountId32 : { id : FixedSizeBinary < 32 > ; network ?: ...
} ; AccountIndex64 : { index : bigint ; network ?: ...
} ; AccountKey20 : { key : FixedSizeBinary < 20 > ; network ?: ...
} ; GeneralIndex : bigint ; GeneralKey : { data : FixedSizeBinary < 32 > ; length : number } ; GlobalConsensus : Enum < { BitcoinCash : undefined ; BitcoinCore : undefined ; ByFork : { block_hash : ...
; block_number : ...
} ; ByGenesis : FixedSizeBinary < (...)
> ; Ethereum : { chain_id : ...
} ; Kusama : undefined ; Polkadot : undefined ; PolkadotBulletin : undefined ; } , > ; OnlyChild : undefined ; PalletInstance : number ; Parachain : number ; Plurality : { id : XcmV3JunctionBodyId ; part : XcmV2JunctionBodyPart } ; } , > , > ; X7 : FixedSizeArray < 7 , Enum < { AccountId32 : { id : FixedSizeBinary < 32 > ; network ?: ...
} ; AccountIndex64 : { index : bigint ; network ?: ...
} ; AccountKey20 : { key : FixedSizeBinary < 20 > ; network ?: ...
} ; GeneralIndex : bigint ; GeneralKey : { data : FixedSizeBinary < 32 > ; length : number } ; GlobalConsensus : Enum < { BitcoinCash : undefined ; BitcoinCore : undefined ; ByFork : { block_hash : ...
; block_number : ...
} ; ByGenesis : FixedSizeBinary < (...)
> ; Ethereum : { chain_id : ...
} ; Kusama : undefined ; Polkadot : undefined ; PolkadotBulletin : undefined ; } , > ; OnlyChild : undefined ; PalletInstance : number ; Parachain : number ; Plurality : { id : XcmV3JunctionBodyId ; part : XcmV2JunctionBodyPart } ; } , > , > ; X8 : FixedSizeArray < 8 , Enum < { AccountId32 : { id : FixedSizeBinary < 32 > ; network ?: ...
} ; AccountIndex64 : { index : bigint ; network ?: ...
} ; AccountKey20 : { key : FixedSizeBinary < 20 > ; network ?: ...
} ; GeneralIndex : bigint ; GeneralKey : { data : FixedSizeBinary < 32 > ; length : number } ; GlobalConsensus : Enum < { BitcoinCash : undefined ; BitcoinCore : undefined ; ByFork : { block_hash : ...
; block_number : ...
} ; ByGenesis : FixedSizeBinary < (...)
> ; Ethereum : { chain_id : ...
} ; Kusama : undefined ; Polkadot : undefined ; PolkadotBulletin : undefined ; } , > ; OnlyChild : undefined ; PalletInstance : number ; Parachain : number ; Plurality : { id : XcmV3JunctionBodyId ; part : XcmV2JunctionBodyPart } ; } , > , > ; } , > ; parents : number ; } ; asset2 : { interior : Enum < { Here : undefined ; X1 : Enum < { AccountId32 : { id : FixedSizeBinary < 32 > ; network ?: Enum < (...)
> } ; AccountIndex64 : { index : bigint ; network ?: Enum < (...)
> } ; AccountKey20 : { key : FixedSizeBinary < 20 > ; network ?: Enum < (...)
> } ; GeneralIndex : bigint ; GeneralKey : { data : FixedSizeBinary < 32 > ; length : number } ; GlobalConsensus : Enum < { BitcoinCash : undefined ; BitcoinCore : undefined ; ByFork : { block_hash : FixedSizeBinary < (...)
> ; block_number : bigint ; } ; ByGenesis : FixedSizeBinary < 32 > ; Ethereum : { chain_id : bigint } ; Kusama : undefined ; Polkadot : undefined ; PolkadotBulletin : undefined ; } , > ; OnlyChild : undefined ; PalletInstance : number ; Parachain : number ; Plurality : { id : XcmV3JunctionBodyId ; part : XcmV2JunctionBodyPart } ; } , > ; X2 : FixedSizeArray < 2 , Enum < { AccountId32 : { id : FixedSizeBinary < 32 > ; network ?: ...
} ; AccountIndex64 : { index : bigint ; network ?: ...
} ; AccountKey20 : { key : FixedSizeBinary < 20 > ; network ?: ...
} ; GeneralIndex : bigint ; GeneralKey : { data : FixedSizeBinary < 32 > ; length : number } ; GlobalConsensus : Enum < { BitcoinCash : undefined ; BitcoinCore : undefined ; ByFork : { block_hash : ...
; block_number : ...
} ; ByGenesis : FixedSizeBinary < (...)
> ; Ethereum : { chain_id : ...
} ; Kusama : undefined ; Polkadot : undefined ; PolkadotBulletin : undefined ; } , > ; OnlyChild : undefined ; PalletInstance : number ; Parachain : number ; Plurality : { id : XcmV3JunctionBodyId ; part : XcmV2JunctionBodyPart } ; } , > , > ; X3 : FixedSizeArray < 3 , Enum < { AccountId32 : { id : FixedSizeBinary < 32 > ; network ?: ...
} ; AccountIndex64 : { index : bigint ; network ?: ...
} ; AccountKey20 : { key : FixedSizeBinary < 20 > ; network ?: ...
} ; GeneralIndex : bigint ; GeneralKey : { data : FixedSizeBinary < 32 > ; length : number } ; GlobalConsensus : Enum < { BitcoinCash : undefined ; BitcoinCore : undefined ; ByFork : { block_hash : ...
; block_number : ...
} ; ByGenesis : FixedSizeBinary < (...)
> ; Ethereum : { chain_id : ...
} ; Kusama : undefined ; Polkadot : undefined ; PolkadotBulletin : undefined ; } , > ; OnlyChild : undefined ; PalletInstance : number ; Parachain : number ; Plurality : { id : XcmV3JunctionBodyId ; part : XcmV2JunctionBodyPart } ; } , > , > ; X4 : FixedSizeArray < 4 , Enum < { AccountId32 : { id : FixedSizeBinary < 32 > ; network ?: ...
} ; AccountIndex64 : { index : bigint ; network ?: ...
} ; AccountKey20 : { key : FixedSizeBinary < 20 > ; network ?: ...
} ; GeneralIndex : bigint ; GeneralKey : { data : FixedSizeBinary < 32 > ; length : number } ; GlobalConsensus : Enum < { BitcoinCash : undefined ; BitcoinCore : undefined ; ByFork : { block_hash : ...
; block_number : ...
} ; ByGenesis : FixedSizeBinary < (...)
> ; Ethereum : { chain_id : ...
} ; Kusama : undefined ; Polkadot : undefined ; PolkadotBulletin : undefined ; } , > ; OnlyChild : undefined ; PalletInstance : number ; Parachain : number ; Plurality : { id : XcmV3JunctionBodyId ; part : XcmV2JunctionBodyPart } ; } , > , > ; X5 : FixedSizeArray < 5 , Enum < { AccountId32 : { id : FixedSizeBinary < 32 > ; network ?: ...
} ; AccountIndex64 : { index : bigint ; network ?: ...
} ; AccountKey20 : { key : FixedSizeBinary < 20 > ; network ?: ...
} ; GeneralIndex : bigint ; GeneralKey : { data : FixedSizeBinary < 32 > ; length : number } ; GlobalConsensus : Enum < { BitcoinCash : undefined ; BitcoinCore : undefined ; ByFork : { block_hash : ...
; block_number : ...
} ; ByGenesis : FixedSizeBinary < (...)
> ; Ethereum : { chain_id : ...
} ; Kusama : undefined ; Polkadot : undefined ; PolkadotBulletin : undefined ; } , > ; OnlyChild : undefined ; PalletInstance : number ; Parachain : number ; Plurality : { id : XcmV3JunctionBodyId ; part : XcmV2JunctionBodyPart } ; } , > , > ; X6 : FixedSizeArray < 6 , Enum < { AccountId32 : { id : FixedSizeBinary < 32 > ; network ?: ...
} ; AccountIndex64 : { index : bigint ; network ?: ...
} ; AccountKey20 : { key : FixedSizeBinary < 20 > ; network ?: ...
} ; GeneralIndex : bigint ; GeneralKey : { data : FixedSizeBinary < 32 > ; length : number } ; GlobalConsensus : Enum < { BitcoinCash : undefined ; BitcoinCore : undefined ; ByFork : { block_hash : ...
; block_number : ...
} ; ByGenesis : FixedSizeBinary < (...)
> ; Ethereum : { chain_id : ...
} ; Kusama : undefined ; Polkadot : undefined ; PolkadotBulletin : undefined ; } , > ; OnlyChild : undefined ; PalletInstance : number ; Parachain : number ; Plurality : { id : XcmV3JunctionBodyId ; part : XcmV2JunctionBodyPart } ; } , > , > ; X7 : FixedSizeArray < 7 , Enum < { AccountId32 : { id : FixedSizeBinary < 32 > ; network ?: ...
} ; AccountIndex64 : { index : bigint ; network ?: ...
} ; AccountKey20 : { key : FixedSizeBinary < 20 > ; network ?: ...
} ; GeneralIndex : bigint ; GeneralKey : { data : FixedSizeBinary < 32 > ; length : number } ; GlobalConsensus : Enum < { BitcoinCash : undefined ; BitcoinCore : undefined ; ByFork : { block_hash : ...
; block_number : ...
} ; ByGenesis : FixedSizeBinary < (...)
> ; Ethereum : { chain_id : ...
} ; Kusama : undefined ; Polkadot : undefined ; PolkadotBulletin : undefined ; } , > ; OnlyChild : undefined ; PalletInstance : number ; Parachain : number ; Plurality : { id : XcmV3JunctionBodyId ; part : XcmV2JunctionBodyPart } ; } , > , > ; X8 : FixedSizeArray < 8 , Enum < { AccountId32 : { id : FixedSizeBinary < 32 > ; network ?: ...
} ; AccountIndex64 : { index : bigint ; network ?: ...
} ; AccountKey20 : { key : FixedSizeBinary < 20 > ; network ?: ...
} ; GeneralIndex : bigint ; GeneralKey : { data : FixedSizeBinary < 32 > ; length : number } ; GlobalConsensus : Enum < { BitcoinCash : undefined ; BitcoinCore : undefined ; ByFork : { block_hash : ...
; block_number : ...
} ; ByGenesis : FixedSizeBinary < (...)
> ; Ethereum : { chain_id : ...
} ; Kusama : undefined ; Polkadot : undefined ; PolkadotBulletin : undefined ; } , > ; OnlyChild : undefined ; PalletInstance : number ; Parachain : number ; Plurality : { id : XcmV3JunctionBodyId ; part : XcmV2JunctionBodyPart } ; } , > , > ; } , > ; parents : number ; } ; mint_to : SS58String ; } , > Defined in Transactions/AssetConversion.ts:52
Provide liquidity into the pool of
asset1
andasset2
. NOTE: an optimal amount of asset1 and asset2 will be calculated and might be different than the providedamount1_desired
/amount2_desired
thus you should provide the min amount you're happy to provide. Paramsamount1_min
/amount2_min
represent that.mint_to
will be sent the liquidity tokens that represent this share of the pool.NOTE: when encountering an incorrect exchange rate and non-withdrawable pool liquidity, batch an atomic call with [
Pallet::add_liquidity
] and [Pallet::swap_exact_tokens_for_tokens
] or [Pallet::swap_tokens_for_exact_tokens
] calls to render the liquidity withdrawable and rectify the exchange rate.Once liquidity is added, someone may successfully call [
Pallet::swap_exact_tokens_for_tokens
].