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
ForeignInvestmenttype sends notifications for completed investment decrements via theDecreasedForeignInvestOrderHook. Otherwise the domain which initially sent theDecreaseInvestOrdermessage will never be notified about the completion. - The implementer of the pallet’s associated
ForeignInvestmenttype sends notifications for completed redemption collections via theCollectedForeignRedemptionHook. Otherwise the domain which initially sent theCollectRedeemmessage will never be notified about the completion. - The pallet’s associated
TreasuryAccountholds 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
palletmodule in each FRAME pallet hosts the most important items needed to construct this pallet.
Enums§
- A LiquidityPools Message