fix withdraw action
This commit is contained in:
parent
13a70f716b
commit
73dc24ada2
|
@ -398,7 +398,7 @@ export class LeaseAccount extends Account<types.LeaseAccountData> {
|
|||
const requestedWithdrawAmount = this.program.mint.toTokenAmountBN(
|
||||
params.amount
|
||||
);
|
||||
return requestedWithdrawAmount.gte(maxWithdrawAmount)
|
||||
return requestedWithdrawAmount.lte(maxWithdrawAmount)
|
||||
? requestedWithdrawAmount
|
||||
: maxWithdrawAmount;
|
||||
})();
|
||||
|
|
Loading…
Reference in New Issue