Skip to content

Conversation

@Oxbobby
Copy link
Member

@Oxbobby Oxbobby commented Sep 23, 2025

@Oxbobby Oxbobby requested a review from jordan-enev September 23, 2025 09:25
@Oxbobby Oxbobby self-assigned this Sep 23, 2025
@Oxbobby Oxbobby added the enhancement New feature or request label Sep 23, 2025
@Oxbobby Oxbobby changed the title Feature/one click transfer reserve for fee Feature/max one click transfer Sep 23, 2025
if (userRequest && userRequest.action.kind === 'calls') {
this.signAccountOpController.accountOp.calls = userRequest.action.calls
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need the else logic? op.calls already holds the transaction, doesn't it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're updating the calls depending on the chosen fee token. If the first case is "send max USDT and pay in USDT", we will perform the "if" calculation. But if the user then changes to another fee option instead, we enter the "else" and allow the user to send the full max USDT he has. Otherwise, he would have sent the subtracted value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants