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

feature: if origination fee / owner fee is set to reserve, we increase liquidity #108

Open
wants to merge 5 commits into
base: mainnet
Choose a base branch
from

Conversation

staccDOTsol
Copy link

As per https://docs.google.com/document/d/1skOAP8zfuMxLVgNFFT_rIA2O24gpMlnH5eLPwfINNuI/edit?usp=sharing

presently burning ctokens doesn't have an altered ratio based on these tokens that are sent to the reserve ata via flashloan fees, ie.:

https://solscan.io/tx/3E2Dwa9tANd2UiGqFAgjVdWYvyEcwhKtRuGf5RpSaYmBSfWg5Eu4ibfEMV79pui73UBk4H9U8LzVoRUiLEqh7uGX

this token account is up COPE it normally isn't in on Solend: https://solscan.io/account/Bg6B6wRs9oELjDG5YUF9urrrxcHGfwjo128H6mQLbHbd

on redeem, it's burning tokens and not delivering extra cope from the ata:
https://solscan.io/tx/2rQq1PRGnBRCPpZ5vks1uvqta3pvU1iMM1RqukobUrXsaZodKWDwFghVTDWwJE7xujiHKrveEJJxffB88aW8my5L

solution, if the keys match then we add liquidity via reserve.liquidity.deposit.

@staccDOTsol
Copy link
Author

Some of the test code is probably superfluous like the reserve refreshes and some of the reserve get states I'll review again tomorrow

@staccDOTsol
Copy link
Author

It may be wiser for a pool creator to set a switch that halves host fee with the depositors and leaves fee recipient alone

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.

1 participant