Skip to content

Conversation

@sayantank
Copy link
Contributor

@sayantank sayantank commented Oct 17, 2025

Description

Since the quote_* functions expect params that implement the SolValCalc/Price* traits, we have to introduce these wrapper structs that wrap around the return values from cpi_lst_to_sol, cpi_sol_to_lst and cpi_price_* functions.

We then simply impl the traits so that we can pass it into the quote_* functions, allowing us to reuse all the math logic in there.

Copy link
Contributor

@lifeofpavs lifeofpavs left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@billythedummy billythedummy left a comment

Choose a reason for hiding this comment

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

gtm after changes

@billythedummy billythedummy merged commit b6e5ebf into master Oct 17, 2025
5 checks passed
@billythedummy billythedummy deleted the sk/quote-helper branch October 17, 2025 11:08
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