Skip to content

Commit f34f58e

Browse files
committed
Update position.py
1 parent 10be5f7 commit f34f58e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

alpaca_finance/automated_vault/position.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ def _execute(self, function_call: web3.contract.ContractFunction) -> Transaction
231231
return receipt
232232

233233
@staticmethod
234-
def to_wei(amt: int, decimals: int) -> int:
235-
return amt * (10 ** decimals)
234+
def to_wei(amt: float, decimals: int) -> int:
235+
return int(amt * (10 ** decimals))
236236

237237
@staticmethod
238238
def from_wei(amt: int, decimals: int) -> int:

0 commit comments

Comments
 (0)