centrifuge-parachain
subscan
Runtime Modules / ForeignInvestments
Spec Version:
Events
Name
Lookup
Attributes
ForeignInvestmentUpdated6d00["AccountId","InvestmentId","InvestState<Of>"]
ForeignInvestmentCleared6d01["AccountId","InvestmentId"]
ForeignRedemptionUpdated6d02["AccountId","InvestmentId","RedeemState<Balance, CurrencyId>"]
ForeignRedemptionCleared6d03["AccountId","InvestmentId"]
Storage Functions
Name
Type
InvestmentState{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["AccountId","cfg_types:tokens:TrancheCurrency"],"value":"pallet_foreign_investments:types:InvestState","keys_id":691,"value_id":138}}
RedemptionState{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["AccountId","cfg_types:tokens:TrancheCurrency"],"value":"pallet_foreign_investments:types:RedeemState","keys_id":691,"value_id":140}}
ForeignInvestmentInfo{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U64"],"value":"cfg_types:investments:ForeignInvestmentInfo","keys_id":11,"value_id":692}}
TokenSwapOrderIds{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["AccountId","cfg_types:tokens:TrancheCurrency"],"value":"U64","keys_id":691,"value_id":11}}
CollectedInvestment{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["AccountId","cfg_types:tokens:TrancheCurrency"],"value":"cfg_types:investments:CollectedAmount","keys_id":691,"value_id":695}}
CollectedRedemption{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["AccountId","cfg_types:tokens:TrancheCurrency"],"value":"cfg_types:investments:CollectedAmount","keys_id":691,"value_id":695}}
InvestmentPaymentCurrency{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["AccountId","cfg_types:tokens:TrancheCurrency"],"value":"cfg_types:tokens:CurrencyId","keys_id":691,"value_id":72}}
RedemptionPayoutCurrency{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["AccountId","cfg_types:tokens:TrancheCurrency"],"value":"cfg_types:tokens:CurrencyId","keys_id":691,"value_id":72}}
Constants
Name
Type
Value
DefaultTokenSellRatioU128000064a7b3b6e00d0000000000000000
Error Types
Name
Docs
InvestmentPaymentCurrencyNotFoundFailed to retrieve the foreign payment currency for a collectedinvestment.NOTE: This error can only occur, if a user tries to collect beforehaving increased their investment as this would store the paymentcurrency.
RedemptionPayoutCurrencyNotFoundFailed to retrieve the foreign payout currency for a collectedredemption.NOTE: This error can only occur, if a user tries to collect beforehaving increased their redemption as this would store the payoutcurrency.
InvestmentInfoNotFoundFailed to retrieve the `TokenSwapReason` from the given`TokenSwapOrderId`.
TokenSwapReasonNotFoundFailed to retrieve the `TokenSwapReason` from the given`TokenSwapOrderId`.
FulfilledTokenSwapAmountOverflowThe fulfilled token swap amount exceeds the sum of active swapamounts of the corresponding `InvestmentState` and`RedemptionState`.
InvestErrorFailed to transition the `InvestState`.
RedeemErrorFailed to transition the `RedeemState.`
PoolNotFoundFailed to retrieve the pool for the given pool id.