-
Notifications
You must be signed in to change notification settings - Fork 15
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
Feat: Set pool fees #4050
Feat: Set pool fees #4050
Conversation
Changing the pool fees will collect all fees and bought amount for LPer and credit them to Lpers' account.
PRO-846 feat: change pool fee
We need the ability to change the pool lp fee. Either we could do this through deleting the pool and recreating it, or via a set fee function (which internally will basically have to do the same). |
Codecov Report
@@ Coverage Diff @@
## main #4050 +/- ##
======================================
Coverage 71% 72%
======================================
Files 377 377
Lines 60078 60624 +546
Branches 60078 60624 +546
======================================
+ Hits 42810 43485 +675
+ Misses 15022 14880 -142
- Partials 2246 2259 +13
... and 9 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Added benchmarking for setting pool fees
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.
Thansk 4 da speling corectons :)
Pool's limit orders are updated with the pool's limit order Updated unit to test this logic
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.
Just these final comments to handle, and we're good to go I think
Fixed some minor typo
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 missed something. We also need to output the LimitOrderUpdated events too, I think it would be best to factor out the crediting of assetss and deposit of the event into the function "update_limit_order_storage" and maybe change the name of the function.
I also pushed some minor some what related stuff, if you can have a look. |
* origin/main: Feat: don't include dust btc amounts on rotation (#4063) chore: update dependency and config.toml for RUSTSEC-2023-0065 (#4066) fix: loop_select conditions (PRO-587) (#4061) chore: remove unused config items (#4064) feat: size limit for CCM (#4015) fix: warn -> info (#4060) Fix: correctly handle peer updates while waiting to reconnect (#4052) # Conflicts: # state-chain/chains/src/lib.rs
@AlastairHolmes |
Two things can you inline "update_limit_order_storage", and also change the RangeOrderUpdated event so the handling of the increase and decrease case is the same, i.e. with an option pair. Thanks, then we can merge. |
* origin/main: Feat: Set pool fees (#4050) fix: don't egress empty all_batch calls (#4102) fix: don't abort broadcast if signers are unavailable (#4104) feat: add restricted balances to AccountInfoV2 (#4048) feat: use snake case for lp api method names (#4108) feat: add expiry block to liquidity channel event (#4111) # Conflicts: # state-chain/custom-rpc/src/lib.rs # state-chain/runtime/src/lib.rs # state-chain/runtime/src/runtime_apis.rs
Pull Request
Closes: PRO-846
Checklist
Please conduct a thorough self-review before opening the PR.
Summary
Added function to set liquidity pool fees.
Changing the pool fees will collect all fees and bought amount for LPer and credit them to Lpers' account.