Skip to content

Conversation

@0xtj24
Copy link

@0xtj24 0xtj24 commented Feb 19, 2025

  • Add sdeUSD feed
  • Add feed and market tests

@08xmt 08xmt merged commit 45358d8 into dev Mar 14, 2025
1 check failed
uint256 assetToUnderlyingRate;

try vault.previewRedeem(SCALE) returns (uint256 rate) {
assetToUnderlyingRate = rate.divWadDown(assetScale);
Copy link

Choose a reason for hiding this comment

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

this should be correct as it should normalize the rate of a non 18 decimal asset to an 18 decimal rate.

so in example a token with 6 decimals: 1e6 * 1e18 / 1e6 = 1e18

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 0xtj24 deleted the feat/sdeUSD 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