-
Notifications
You must be signed in to change notification settings - Fork 1
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
perp-4102 | burn half of the house LP shares #29
Conversation
This is an incentivization mechanism to provide additional value over time to liquidity providers.
Deploying levana-predict with Cloudflare Pages
|
contract/src/execute.rs
Outdated
@@ -338,7 +338,8 @@ fn withdraw( | |||
|
|||
let Sell { funds, returned } = market.sell(outcome, tokens)?; | |||
|
|||
if share_info.get_outcome(&market, outcome)?.is_zero() { | |||
if share_info.get_outcome(&market, outcome, false)?.is_zero() { | |||
println!("here1"); |
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.
I believe you didn't mean to check this in..
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.
Doh, good catch, thanks!
@@ -83,6 +83,7 @@ pub fn sanity(store: &dyn Storage, env: &Env) { | |||
assert_eq!(tokens.0, pool_size.0); | |||
} | |||
|
|||
// FIXME modify check to include in all wallets if they have a liquidity share |
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.
Not sure if you want to address this as part of this PR or later.
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.
Fixed in the next PR.
This is an incentivization mechanism to provide additional value over time to liquidity providers.