Skip to content

Conversation

@ckoopmann
Copy link
Collaborator

Exchange Issuance for Leveraged Tokens:

  • Supports issuing Leveraged Tokens with one debt and one collateral token (such as FLI tokens)
  • Designed to be run on Polygon
  • Utilizes Aave flashloan to avoid the user having to supply / receive the debt token on redemption / issuance
  • Uses UniswapV2 based exchanges for token swaps (Sushiswap, Quickswap)

Christian Koopmann and others added 30 commits January 16, 2022 11:35
_decodedParams.limitAmount,
_decodedParams.leveragedTokenData
);
require(amountInputTokenSpent <= _decodedParams.limitAmount, "ExchangeIssuance: INSUFFICIENT INPUT AMOUNT");
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is where I moved to max/minAmount checks. @ncitron : Let me know if this is "top level" enough.

Copy link
Contributor

@ncitron ncitron left a comment

Choose a reason for hiding this comment

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

Mostly just nitpicks here. Can you go through and do a detailed check of the formatting. Mostly I've notices a bunch of spots where the indentation is off or the javadoc params do not reflect the current function args. I flagged a few examples but there's a bunch of spots that I didn't point out. Once these are addressed, feel free to merge.

Good job on this!

@ckoopmann ckoopmann changed the title Exchange Issuance for Leveraged Tokens feat: Exchange Issuance for Leveraged Tokens Mar 6, 2022
@ckoopmann ckoopmann merged commit 2845261 into IndexCoop:master Mar 6, 2022
@FlattestWhite
Copy link
Contributor

🎉 This PR is included in version 0.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

ace3 pushed a commit to ace3/index-coop-smart-contracts that referenced this pull request Feb 2, 2024
* low hanging audit changes

* fix tests

* audit changes

* fix tests

* improve tests

* clean up contracts

* use removeStorage

* review changes
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.

3 participants