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

[VEN-2943]: add support for Pendle's getPtToSyRate #240

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

kkirka
Copy link
Collaborator

@kkirka kkirka commented Dec 11, 2024

This PR modifies Pendle oracle to support using yield tokens as a base, as an alternative to using the underlying asset directly. This is the approach recommended by the Pendle team for tokens where redemptions/withdrawals are not guaranteed.

@kkirka kkirka changed the title feat: add support for pendle's getPtToSyRate feat: add support for Pendle's getPtToSyRate Dec 11, 2024
@kkirka kkirka force-pushed the feat/pendle-sy-rate branch from de5f34f to 97d3797 Compare December 11, 2024 10:11
Copy link

Code Coverage

Package Line Rate Branch Rate Health
contracts 85% 80%
contracts.interfaces 28% 21%
contracts.oracles 88% 80%
contracts.oracles.common 100% 100%
Summary 84% (291 / 348) 76% (144 / 190)

@chechu chechu changed the title feat: add support for Pendle's getPtToSyRate [VEN-2943]: add support for Pendle's getPtToSyRate Dec 11, 2024
address market,
uint32 duration
address /* market */,
uint32 /* duration */
Copy link
Contributor

@GitGuru7 GitGuru7 Dec 12, 2024

Choose a reason for hiding this comment

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

Why we have commented the args? Can't we remove them?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Solidity compiler complains when names are present but unused. I commented them out to silence the warnings while preserving the readability. We can remove them for sure if you think it's better, I'm ok with either.

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