Crate pallet_investments
source ·Expand description
§Investments Pallet
Provides orders for assets and allows user to collect these orders.
Re-exports§
pub use weights::WeightInfo;
pub use pallet::*;
Modules§
- The
pallet
module in each FRAME pallet hosts the most important items needed to construct this pallet.
Enums§
- A signaler, showing if the collect call actually collected all Closed orders and the investor can create a new investment or if the investor has to call collect() again.
- Defining how the collect logic runs. CollectType::Closing will ensure, that all unfulfilled investments are returned to the user account. CollectType::Overflowing will ensure, that all unfilfilled investments are moved into the next active order for this investment.
- The enum we parse to
PreConditions
so the runtime can make an educated decision about this investment
Type Aliases§
- A newtype for Order