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 the DecreasedForeignInvestOrderHook. Otherwise the domain which initially sent the DecreaseInvestOrder message will never be notified about the completion.
  • The implementer of the pallet’s associated ForeignInvestment type sends notifications for completed redemption collections via the CollectedForeignRedemptionHook. Otherwise the domain which initially sent the CollectRedeem 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§

Modules§

Enums§

Type Aliases§