Skip to content

Save cToken exchange rate fix#176

Merged
abrzezinski94 merged 1 commit intoMythic-Project:mainfrom
solendprotocol:save-fix
Apr 27, 2025
Merged

Save cToken exchange rate fix#176
abrzezinski94 merged 1 commit intoMythic-Project:mainfrom
solendprotocol:save-fix

Conversation

@0xodia
Copy link
Copy Markdown
Contributor

@0xodia 0xodia commented Apr 27, 2025

When a user deposits into a save reserve on behalf the dao, he first mints a ctoken and transfer it to the dao. The amount to transfer is estimated prior to creating the transactions. If a user has not interacted with the reserve for a while, this estimation will be off. To solve this, we simulate an interaction with the reserve to improve calculation amounts.

If the simulation fails, a 2% buffer is added to compensate as well.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 27, 2025

@0xodia is attempting to deploy a commit to the RealmsToday Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 27, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
governance-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 27, 2025 8:22pm

@abrzezinski94 abrzezinski94 merged commit a6888d0 into Mythic-Project:main Apr 27, 2025
6 of 7 checks passed
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.

2 participants