Function pallet_investments::pallet::dispatchables::update_invest_order
source · pub fn update_invest_order<T: Config>(
investment_id: T::InvestmentId,
amount: T::Amount
)
Expand description
Update an order to invest into a given investment.
If the requested amount is greater than the current investment order, the balance will be transferred from the calling account to the pool. If the requested amount is less than the current order, the balance will be transferred from the pool to the calling account.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::update_invest_order
.