Skip to content

Integrate Exceed Finance#34

Open
nilz3ro wants to merge 1 commit intoKamino-Finance:masterfrom
nilz3ro:integrate-exceed-finance
Open

Integrate Exceed Finance#34
nilz3ro wants to merge 1 commit intoKamino-Finance:masterfrom
nilz3ro:integrate-exceed-finance

Conversation

@nilz3ro
Copy link

@nilz3ro nilz3ro commented Aug 27, 2025

This PR introduces a new oracle for Exceed Finance LST Pairs. It works by calculating the exchange rate for 1 LST to the base asset for a given pair.

msg!("Linear yield: {}", linear_yield);

// Add the linear yield to the compounded rate
let total_rate = compounded_rate.checked_add(linear_yield)?;
Copy link
Contributor

@liviuc685 liviuc685 Aug 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be multiplication instead, ie. checked_mul(1 + linear_yield)? (I'm ignoring PRECISION in this formula)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We decided to do it this way, since this matches our legacy program. This is how our new liquid staking program calculates exchange rates too.

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