Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Strategy (BeradromeStrategy)

BeradromeStrategy is the pluggable strategy that manages vault assets by staking them into Beradrome protocol and handling yield harvesting.

Users do not interact with the strategy directly — all deposits and withdrawals go through the SFVault, which calls the strategy automatically.

Read Functions


stakedBalance()uint256

Returns the amount of assets currently staked in the Beradrome plugin.


totalManagedAssets()uint256

Returns total assets managed by the strategy. Only counts staked balance (ignores idle to prevent donation attacks).


previewHarvest(address wrapper)(address[] tokens, uint256[] amounts)

Returns the tokens and net amounts (after protocol fees) that would be harvested.

  • Always returns two entries: [wrapper, OBERO]
  • Amounts represent what remains after 6.9% protocol fee extraction

Reference

sf-contracts/src/strategies/BeradromeStrategy.sol