-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
contracts/keeper/src/contract.rs
Outdated
recipient: Some(recipient), | ||
exit_type: ExitType::ExactLpBurn { | ||
lp_to_burn: amount, | ||
min_assets_out: None |
There was a problem hiding this comment.
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
contracts/keeper/src/contract.rs
Outdated
lp_token_address: Addr, | ||
amount: Uint128, | ||
sender: Addr, | ||
recipient: Option<Addr> |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
///
contracts/multi_staking/src/utils.rs
Outdated
|
||
/// 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
both*
fb97cd7
to
7fe3d48
Compare
No description provided.