Skip to content

Feat/compounding strategy#45

Draft
RedVeil wants to merge 22 commits into
mainfrom
feat/compounding-strategy
Draft

Feat/compounding strategy#45
RedVeil wants to merge 22 commits into
mainfrom
feat/compounding-strategy

Conversation

@RedVeil

@RedVeil RedVeil commented Feb 14, 2023

Copy link
Copy Markdown
Contributor

No description provided.

}

// Return available rewards for all rewardTokens.
function rewardsAvailable() public override returns (uint256[] memory) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

What is this exactly needed for? I think we only need to call IAdapter(address(this)).rewardTokens and than claim after
maybe im missing smth here

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

IAdapter(address(this)).rewardTokens returns the addresses of the tokens while this function returns the amounts of the tokens available for harvest

function rewardsAvailable() public virtual returns (uint256[] memory) {}

It's meant for a check to make sure that there are rewards to harvest before calling the harvest function.

It's an extra check, but perhaps unnecessary.

@vercel

vercel Bot commented Mar 20, 2023

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
monorepo-app ❌ Failed (Inspect) Mar 20, 2023 at 11:27AM (UTC)

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.

2 participants