Skip to content

feat: add Aave yield strategy model - #23

Open
rafaio1 wants to merge 1 commit into
PunkFinance:masterfrom
rafaio1:feat/aave-yield-strategy
Open

rafaio1 wants to merge 1 commit into
PunkFinance:masterfrom
rafaio1:feat/aave-yield-strategy

Conversation

@rafaio1

@rafaio1 rafaio1 commented Aug 24, 2026

Copy link
Copy Markdown

Summary

Implemented a new yield strategy utilizing the Aave protocol to generate optimal cash flows for the Punk Saver product.

Changes

  • Created AaveModel.sol inheriting ModelInterface and ModelStorage.
  • Implemented invest() to deposit underlying tokens into Aave V2 Lending Pool in exchange for aTokens.
  • Implemented withdrawTo() and withdrawAllToForge() to seamlessly redeem aTokens and transfer underlying assets back to the Forge or specified address.
  • Handled edge cases where the model contract already holds partial liquid underlying balance during withdrawals.

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.

1 participant