Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(contracts/portal): refund xcall fee overpayment #2613

Conversation

RyanSea
Copy link
Contributor

@RyanSea RyanSea commented Dec 3, 2024

Added a refund on fee overpayment & made a small optimization that removes the second SSLOAD & is imo cleaner

Requesting feedback because there is a needless warning on unused low level return value

@Zodomo
Copy link
Contributor

Zodomo commented Dec 5, 2024

This was a good suggestion. @kevinhalliday and I discussed and we decided that we will refrain from merging it for now. As it stands, integrating apps have to handle when users overpay as it is, so sending refunds to those apps seems to enforce not checking proper payment was made as a norm. Additionally, fee oracle updates are not frequent enough to cause user transactions to revert, so quotes should be accurate between a frontend retrieving one and a user's wallet submitting the transaction.

@Zodomo Zodomo closed this Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants