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

feat: add flash mint wrapped #85

Merged
merged 60 commits into from
Oct 21, 2024
Merged

feat: add flash mint wrapped #85

merged 60 commits into from
Oct 21, 2024

Conversation

janndriessen
Copy link
Collaborator

@janndriessen janndriessen commented Sep 4, 2024

TODOs

  • resolve FIXMEs (mostly when icUSD is available)
  • add integration tests (tests/icusd.test.ts)

src/constants/tokens.ts Outdated Show resolved Hide resolved
return assets
} catch {
// TODO: apply slippage to issuance units amount (for all none erc4262)
return issuanceUnits
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@pblivin0x for the presale I can just use issuance units here or should I still apply a slight slippage by default?

Choose a reason for hiding this comment

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

DebtIssuanceModuleV3 will lose the tokenTransferBuffer of wei on each component

Rebasing components will "lose" however much their accounting is stale by (Aave V3 USDC and Compound V3 USDC)

So some slippage needs to be applied always, for different reasons

@janndriessen janndriessen marked this pull request as ready for review October 18, 2024 08:11
@janndriessen janndriessen merged commit d5202b3 into main Oct 21, 2024
2 checks passed
@janndriessen janndriessen deleted the feat/add-flashmint-wrapped branch October 21, 2024 13:19
Copy link

🎉 This PR is included in version 3.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

2 participants