Skip to content

Conversation

@gnarvaja
Copy link
Contributor

@gnarvaja gnarvaja commented Jun 3, 2025

Work in progress. For now, I just did a refactoing extracting an abstract contract that will be used to handle the swap of tokens, the withdrawal and the valorization.

Pending steps:

  1. Contract ChainlinkSwapAssetInvestStrategy: version of SwapAssetInvestStrategy that uses chainlink oracle(s) to fetch the price. Can be used to invest in other assets.
  2. Contract MerklRewardInvestStrategy: will inherit ChainlinkSwapAssetInvestStrategy disabling the deposits and implementing methods to claim the rewards and swap the tokens received, reinjecting them into the vault

gnarvaja added 4 commits June 3, 2025 13:13
Work in progress. For now, I just did a refactoing extracting an
abstract contract that will be used to handle the swap of tokens, the
withdrawal and the valorization.

Pending steps:

1. Contract ChainlinkSwapAssetInvestStrategy: version of
   SwapAssetInvestStrategy that uses chainlink oracle(s) to fetch the
   price. Can be used to invest in other assets.
2. Contract MerklRewardInvestStrategy: will inherit
   ChainlinkSwapAssetInvestStrategy disabling the deposits and
   implementing methods to claim the rewards and swap the tokens
   received, reinjecting them into the vault
Added ChainlinkSwapAssetInvestStrategy (not yet tested).

Removed functions that were migrated to @ensuro/utils and changed how we
use tagit.
Built inheriting ChainlinkSwapAssetInvestStrategy, disables deposits and
has methods for claims, claim and swap, and just swap.
@gnarvaja gnarvaja merged commit 50e0c1d into main Jun 13, 2025
2 checks passed
@gnarvaja gnarvaja deleted the merkl-reward-strategies branch June 13, 2025 16:28
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.

3 participants