Crate pallet_liquidity_pools
source ·Expand description
§Liquidity Pools pallet
Provides the toolset to enable foreign investments on foreign domains.
§Assumptions
- Sending/recipient domains handle cross-chain transferred currencies properly on their side. This pallet only ensures correctness on the local domain.
- The implementer of the pallet’s associated
ForeignInvestment
type sends notifications for completed investment decrements via theDecreasedForeignInvestOrderHook
. Otherwise the domain which initially sent theDecreaseInvestOrder
message will never be notified about the completion. - The implementer of the pallet’s associated
ForeignInvestment
type sends notifications for completed redemption collections via theCollectedForeignRedemptionHook
. Otherwise the domain which initially sent theCollectRedeem
message will never be notified about the completion. - The pallet’s associated
TreasuryAccount
holds sufficient balance for the corresponding fee currencies of all possible recipient domains for the following outgoing messages:Message::FulfilledCancelDepositRequest
,Message::FulfilledCancelRedeemRequest
,Message::FulfilledDepositRequest
,Message::FulfilledRedeemRequest
,Message::ScheduleUpgrade
.
Re-exports§
pub use pallet::*;
Modules§
- The
pallet
module in each FRAME pallet hosts the most important items needed to construct this pallet.
Enums§
- A LiquidityPools Message