Skip to content

Comments

Check withdrawable amount is zero before transferring#25

Merged
codchen merged 2 commits intomainfrom
tony/check-zero-rewards
Dec 4, 2025
Merged

Check withdrawable amount is zero before transferring#25
codchen merged 2 commits intomainfrom
tony/check-zero-rewards

Conversation

@codchen
Copy link
Collaborator

@codchen codchen commented Dec 3, 2025

Describe your changes and provide context

Withdrawing rewards involves dispatching a bank transfer event which will error out if the amount is zero, so we need to check whether the reward amount is zero before withdrawing

Testing performed to validate your change

unit test

@codchen codchen merged commit dce8a74 into main Dec 4, 2025
1 check passed
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