From 65c51dd95356702ddbccfa0193bf4325253c8cc2 Mon Sep 17 00:00:00 2001 From: Rohan Agarwal Date: Wed, 27 Nov 2024 13:03:15 -0500 Subject: [PATCH] Fix --- cdp/wallet_address.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cdp/wallet_address.py b/cdp/wallet_address.py index 58e86e8..e8d801d 100644 --- a/cdp/wallet_address.py +++ b/cdp/wallet_address.py @@ -357,9 +357,11 @@ def quote_fund(self, amount: Number | Decimal | str, asset_id: str) -> FundQuote FundQuote: The fund quote object. """ + normalized_amount = Decimal(amount) + return FundQuote.create( address_id=self.address_id, - amount=str(amount), + amount=str(normalized_amount), asset_id=asset_id, network_id=self.network_id, wallet_id=self.wallet_id,