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

fix: Emit both amounts coming from LQTYStaking and total ones on unst… #79

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

bingen
Copy link
Contributor

@bingen bingen commented Nov 19, 2024

…aking

@bingen bingen self-assigned this Nov 19, 2024
emit Unstake(_amount, _recipient, lusdAmount, ethAmount);
emit Unstake(
_recipient,
_amount,
Copy link
Contributor

@danielattilasimon danielattilasimon Nov 21, 2024

Choose a reason for hiding this comment

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

In my opinion _amount is meaningless, and we should calculate the balance difference like we do for LUSD & ETH and use that instead. This is because you pass any amount higher than your stake, and LQTYStaking will internally truncate it to the maximum withdrawable amount.

If you pass any amount higher than your stake, and LQTYStaking will
internally truncate it to the maximum withdrawable amount.
@bingen bingen merged commit 1926488 into main Nov 21, 2024
2 of 3 checks passed
@danielattilasimon danielattilasimon deleted the D-A1 branch November 22, 2024 03:55
@danielattilasimon danielattilasimon restored the D-A1 branch November 22, 2024 04:04
@danielattilasimon danielattilasimon deleted the D-A1 branch November 22, 2024 06:47
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