Skip to content

Commit

Permalink
Feat/add vtoken exchange rate rpc (#1277)
Browse files Browse the repository at this point in the history
* Add vtoken exchange rate rpc

* add the use of Vec

* supplement the RPC logic && fix bugs

* adjust the RPC exchange rate precision to three decimal places

* fix clippy

* supplement omissions: adjust the RPC exchange rate precision to three decimal places
  • Loading branch information
SunTiebing authored Jun 21, 2024
1 parent b4fdc81 commit 7e58dc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/vtoken-minting/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1944,7 +1944,7 @@ pub mod pallet {
let token_id = T::CurrencyIdConversion::convert_to_token(vtoken_id)
.map_err(|_| Error::<T>::NotSupportTokenType)?;

let vtoken_amount = Self::get_vtoken_amount(token_id, 1u128)?;
let vtoken_amount = Self::get_vtoken_amount(token_id, 1000u128)?;
result.push((token_id, vtoken_amount));
}
},
Expand Down

0 comments on commit 7e58dc5

Please sign in to comment.