ROI Architecture

P, C, and ROI rule (for docs)

  • P (market bid) — the most recent positive market bid (the competitive market value). In code this is marketBid (we fetch it from getLatestBidValueOptimized).

  • C (minimum bid) — the minimum bid required by the CacheManager for this contract (on-chain value returned by cacheManager.getMinBid(contractAddress)).

  • ROI rule — place a bid only when the expected relative profit is above your configured threshold

"ROI = (P - C) / P"

If ROI >= threshold (e.g. threshold = 0.10 meaning 10%), the system will place the bid. This guarantees that the bid leaves at least the configured fraction as profit relative to the market value.


Last updated