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 swap collected fees accounting #21

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

adrena-orex
Copy link
Contributor

receiving custody collected fees should be calculated using received token informations

@askibin askibin merged commit cb23f84 into solana-labs:master Jul 14, 2023
1 check passed
adrena-orex referenced this pull request in AdrenaFoundation/perpetuals Jul 28, 2023
* Update versions and integrate with clockwork-sdk

* Use position_price to compute size_usd in open_position

* Limit max_payoff_mult for short positions

* Add EMA support for custom oracle

* Add audit report (#14)

* add LM rewards

* add mint gate with buckets limits

* Convert fees to collateral custody token (#15)

* Add virtual/synthetic assets description (#17)

* CLI updates and fixes (#18)

* handle ADX/ALP staking

* Add economic simulations (#20)

* Fix accounting (#21)

* updated the simulations to the release version (solana-labs#24)

* Fix RefCell in tests

* Close position protocol_fee accounting (#22)

* Update pool aum usd (solana-labs#23)

---------

Co-authored-by: Alexey Skibin <alexey@solana.com>
Co-authored-by: Grigory Gonastarev <95714055+goodguygg@users.noreply.github.com>
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.

4 participants