steve0xp / yearn_mellow-gearbox-strategy

yearn strategy depositing vault assets into mellow protocol gearbox strategy(ies)
GNU Affero General Public License v3.0
1 stars 0 forks source link

Where does the strategy measure health metrics from: Yearn (internal calcs), Mellow, or Gearbox? #5

Closed steve0xp closed 1 year ago

steve0xp commented 1 year ago

Bot monitoring: It is important to be aware of the health factor of the actual strategy, but are we trusting these metrics based on:

  1. Mellow metrics - their system where they use Marginal Factor Balance & State checks?
  2. Gearbox metrics - health factors for specific credit accounts?
  3. Yearn own metrics - health bots querying blockchain to see value of assets based off of converting assets in open strategy positions & other internal math

Context:

function calcTotalValue(address creditAccount)
        external
        view
        returns (uint256 total, uint256 twv);

&&

function calcCreditAccountHealthFactor(address creditAccount)
        external
        view
        returns (uint256 hf);
steve0xp commented 1 year ago

Closing this as we figure this out in issue #14