Skip to content

feat: allow invest to ERC4626 vaults #82

@antoncoding

Description

@antoncoding

TLDR

  • Allow contracts to take an optional input when creating challenge: strategy or vault
  • If the address is specified, treat it like ERC4626, verify if the underlying asset is the challenge token
  • deposit into the vault, and store the responding share the user entitled for this challenge
  • when claiming, swap the share back to the original token by withdraw with receiver being the user

Details

  • What if withdraw fail (no liquidity in lending protocol for example) -> transfer the share back for users?

Metadata

Metadata

Assignees

Labels

smart contractSmart contract features / update

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions