Skip to content

Conversation

@0xtj24
Copy link

@0xtj24 0xtj24 commented Mar 12, 2025

  • Add tests to use NAV instead of Fixed Price
  • Add USDe before maturity feed with NAV and tests

@0xtj24 0xtj24 marked this pull request as ready for review March 12, 2025 22:29
uint80 answeredInRound
) = sUSDeFeed.latestRoundData();

uint256 sUSDeToUSDeRate = sUSDe.convertToAssets(1e18);
Copy link

@wavey0x wavey0x Mar 14, 2025

Choose a reason for hiding this comment

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

if token is capable of taking withdraw fees, .previewRedeem() may be more accurate

int256 USDeUsdPrice = (sUSDePrice * 1e18) / int256(sUSDeToUSDeRate);

(,int256 navDiscountedPrice,,,)= navFeed.latestRoundData();
int256 usdeDiscountPrice = (USDeUsdPrice * navDiscountedPrice) / 1e18;
Copy link

@wavey0x wavey0x Mar 14, 2025

Choose a reason for hiding this comment

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

i believe this particular token is subject to a cooldown.

thus, a simple share price formula may be a somewhat misleading way to get the actual market price as the market should theoretically apply a discount based on time it takes to cool down.

just wanted to highlight this note, though i'm sure you've already considered.

Copy link

@wavey0x wavey0x left a comment

Choose a reason for hiding this comment

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

LGTM

@0xtj24
Copy link
Author

0xtj24 commented May 6, 2025

Already merged into dev with #102

@0xtj24 0xtj24 closed this May 6, 2025
@0xtj24 0xtj24 deleted the feat/pt-sude branch May 16, 2025 14:40
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