fix(list-redeemable-vaults): added call to parachain runtime definiton
@@ -873,6 +873,11 @@ impl_runtime_apis! {
Ok(result.iter().map(|v| (v.0.clone(), BalanceWrapper{amount:v.1})).collect())
}
+ fn get_vaults_with_redeemable_tokens() -> Result<Vec<(AccountId, BalanceWrapper<Balance>)>, DispatchError> {
+ let result = VaultRegistry::get_vaults_with_redeemable_tokens()?;
+ Ok(result.iter().map(|v| (v.0.clone(), BalanceWrapper{amount:v.1})).collect())
+ }
+
fn get_issuable_tokens_from_vault(vault: AccountId) -> Result<BalanceWrapper<Balance>, DispatchError> {
let result = VaultRegistry::get_issuable_tokens_from_vault(vault)?;
Ok(BalanceWrapper{amount:result})
