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

Bancorv3 adapter #26

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open

Bancorv3 adapter #26

wants to merge 24 commits into from

Conversation

Aleione
Copy link
Collaborator

@Aleione Aleione commented Apr 4, 2024

No description provided.

/// @notice Calculates pair prices for specified amounts
/// @param _amountIn The amount of the token being sold
/// @param _sellToken the token to sell
/// @param _buyToken The token ro buy
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// @param _buyToken The token ro buy
/// @param _buyToken The token to buy

/// @param _buyToken The token ro buy
/// @return (fraction) price as a fraction corresponding to the provided
/// amount
function getPriceAt(
Copy link
Contributor

Choose a reason for hiding this comment

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

would appreciate more comments of what's going on with the price caches. This is really hard to understand as is


/// @notice Get the liquidity of _buyToken and _sellToken in a specific pool
/// @param _sellToken the token to sell
/// @param _buyToken The token ro buy
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// @param _buyToken The token ro buy
/// @param _buyToken The token to buy

mp-web3 added a commit that referenced this pull request Oct 14, 2024
…adapter-fixes

Feature/sc 1989/sfraxeth adapter fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants