You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: auction-server/src/auction/service/verification.rs
+17-47Lines changed: 17 additions & 47 deletions
Original file line number
Diff line number
Diff line change
@@ -583,18 +583,20 @@ impl Service {
583
583
// User has to wrap Sol
584
584
if transaction_data.accounts.mint_user == spl_token::native_mint::id(){
585
585
// Sometimes the user doesn't have enough SOL, but we want the transaction to fail in the Express Relay program with InsufficientUserFunds.
586
-
// Sometimes the user will already have a WSOL account, and they don't need to wrap the full user_amount of SOL.
586
+
// Sometimes the user will already have a WSOL account, and they might not be able to wrap the necessary amount from their SOL balance. In this case, we want to enable the tx to proceed with whatever they have in SOL being wrapped. The tx should still succeed if they have enough SOL + WSOL to cover the amount_user.
587
587
// For both these reasons, we allow the user to wrap less SOL than needed so it doesn't fail in the transfer instruction.
0 commit comments