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

Add SfrxETH-FrxETH exchange rate adapter #99

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

Conversation

horacepan
Copy link

This PR creates an sfrxETH-frxETH exchange rate adapter following the structure of the wstETH-stETH exchange rate adapter. The only difference is that the exchange rate is computed by calling the pricePerShare function instead of getPooledEthByShares.

Run tests via:

forge test --match-path test/SfrxEthFrxEthExchangeRateChainlinkAdapterTest.sol

image

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