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

Instant LP Unbonding #75

Merged
merged 16 commits into from
May 29, 2023
Merged

Conversation

betterclever
Copy link
Member

No description provided.

recipient: Some(recipient),
exit_type: ExitType::ExactLpBurn {
lp_to_burn: amount,
min_assets_out: None
Copy link
Member Author

Choose a reason for hiding this comment

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

add support for min_asset_out slippage while exiting using Keeper

lp_token_address: Addr,
amount: Uint128,
sender: Addr,
recipient: Option<Addr>
Copy link
Member Author

Choose a reason for hiding this comment

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

unnecessary parameter in this context

.add_attribute("amount", amount)
.add_attribute("total_bond_amount", lp_global_state.total_bond_amount)
.add_attribute("user_updated_bond_amount", user_updated_bond_amount)
.add_attribute("withdraw_fee", penalty_fee)
Copy link
Member Author

Choose a reason for hiding this comment

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

let's call it instant_unbond_fee rather than different nomenclatures

use dexter::helper::EventExt;
use crate::state::CONFIG;

// Instant unlock is a extension of instant unbonding feature which allows to insantly unbond tokens
Copy link
Member Author

Choose a reason for hiding this comment

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

///


/// Find the difference between two lock vectors.
/// This must take into account that same looking lock can coexist, for example, there can be 2 locks for unlocking
/// 100 tokens at block 100 boths.
Copy link
Member Author

Choose a reason for hiding this comment

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

both*

@betterclever betterclever force-pushed the betterclever/ft-instant-lp-unbonding branch from fb97cd7 to 7fe3d48 Compare May 29, 2023 17:59
@betterclever betterclever merged commit fe2dfd6 into main May 29, 2023
1 check passed
@betterclever betterclever deleted the betterclever/ft-instant-lp-unbonding branch May 29, 2023 18:16
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.

None yet

1 participant