Skip to content

Commit

Permalink
remove minus allowance
Browse files Browse the repository at this point in the history
  • Loading branch information
hardingjam committed Jan 30, 2025
1 parent 60f71d7 commit c31706d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/common/src/deposit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl DepositArgs {
) -> Result<Vec<u8>, WritableTransactionExecuteError> {
let approve_call = approveCall {
spender: transaction_args.orderbook_address,
amount: self.amount - current_allowance,
amount: self.amount,
};
Ok(approve_call.abi_encode())
}
Expand Down

0 comments on commit c31706d

Please sign in to comment.