Skip to content

feat: autoSwapper for WUSDN to SDEX #921

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

Merged
merged 12 commits into from
May 16, 2025
Merged

feat: autoSwapper for WUSDN to SDEX #921

merged 12 commits into from
May 16, 2025

Conversation

samooyo
Copy link
Contributor

@samooyo samooyo commented May 14, 2025

This PR introduces an auto swapper contract that receives WUSDN protocol fees via a fallback function. When invoked by the protocol, the contract automatically swaps WUSDN for SDEX using a SmarDex pool. Then, the SDEX are sent to the dead address.

The swap reverts are handled safely and will not propagate back to the protocol.

Closes RA2BL-828.

@samooyo samooyo marked this pull request as draft May 14, 2025 09:44
@samooyo samooyo self-assigned this May 15, 2025
@samooyo samooyo added To review The pull request need to be reviewed before merge 2 reviews required labels May 15, 2025
@samooyo samooyo marked this pull request as ready for review May 15, 2025 07:49
KirienzoEth
KirienzoEth previously approved these changes May 15, 2025
Copy link
Contributor

@KirienzoEth KirienzoEth left a comment

Choose a reason for hiding this comment

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

LGTM!

@fireboss777 fireboss777 self-requested a review May 16, 2025 09:07
lilyanB
lilyanB previously approved these changes May 16, 2025
Copy link
Contributor

@lilyanB lilyanB left a comment

Choose a reason for hiding this comment

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

LGTM

@samooyo samooyo dismissed stale reviews from lilyanB and KirienzoEth via 8d41e8f May 16, 2025 11:48
Copy link
Contributor

@fireboss777 fireboss777 left a comment

Choose a reason for hiding this comment

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

Thx 👍

@samooyo samooyo merged commit 5087573 into main May 16, 2025
6 checks passed
@samooyo samooyo deleted the feature/wusdn-autoswapper branch May 16, 2025 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 reviews required To review The pull request need to be reviewed before merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants