We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Both the below methods takes u128 as type for the amount.
pub trait PolkadexSwapRpcApi<BlockHash> { #[method(name = "tx_quotePriceExactTokensForTokens")] async fn quote_price_exact_tokens_for_tokens( &self, asset_id1: String, asset_id2: String, amount: u128, include_fee: bool, ) -> RpcResult<Option<u128>>; #[method(name = "tx_quotePriceTokensForExactTokens")] async fn quote_price_tokens_for_exact_tokens( &self, asset_id1: String, asset_id2: String, amount: u128, include_fee: bool, ) -> RpcResult<Option<u128>>; }
Since this in ecoded as json rpc, u128 can fail deserialization for very large numbers as this is not supported in json.
The text was updated successfully, but these errors were encountered:
zktony
No branches or pull requests
Both the below methods takes u128 as type for the amount.
Since this in ecoded as json rpc, u128 can fail deserialization for very large numbers as this is not supported in json.
The text was updated successfully, but these errors were encountered: