Crate pallet_foreign_investments
source ·Expand description
§Foreign Investment pallet
Enables investing, redeeming and collecting in foreign and non-foreign
currencies. Can be regarded as an extension of pallet-investments
which
provides the same toolset for pool (non-foreign) currencies.
§Assumptions
- The implementer of the pallet’s associated
Investment
type sends notifications for collected investments viaCollectedInvestmentHook
and for collected redemptions viaCollectedRedemptionHook
]. - The implementer of the pallet’s associated
TokenSwaps
type sends notifications for fulfilled swap orders via theFulfilledSwapHook
. - The implementer of the pallet’s associated
DecreasedForeignInvestOrderHook
type handles the refund of the decreased amount to the investor. - The implementer of the pallet’s associated
CollectedForeignRedemptionHook
type handles the transfer of the collected amount in foreign currency to the investor.
Re-exports§
pub use pallet::*;
Modules§
- The
pallet
module in each FRAME pallet hosts the most important items needed to construct this pallet.
Structs§
Enums§
Functions§
- Get the pool currency associated to a investment_id
Type Aliases§
- Identification of a foreign investment/redemption
- PoolId identification
- Identification of a swap from foreing-investment perspective
- Swap alias
- TrancheId Identification