Skip to content

Releases: adrastia-oracle/adrastia-core

v4.10.2

07 Jul 22:56
c7bc06d

Choose a tag to compare

Accumulators

  • Update VenusSBAccumulator
    • Use the pseudo BNB address for the native currency address.
    • Add a constructor parameter to toggle the use of the vToken badDebt function and corresponding logic.

v4.10.1

04 Jul 17:30
9451cf1

Choose a tag to compare

Accumulators

  • Update AdrastiaPriceAccumulator
    • Make adrastiaOracle a virtual function.
  • Update AdrastiaUtilizationAndErrorAccumulator
    • Add adrastiaOracle as a virtual function.

v4.10.0

02 Jul 18:05
85112bf

Choose a tag to compare

Accumulators

  • Update AdrastiaPriceAccumulator
    • Use the heartbeat as the maximum observation age when consulting the underlying oracle.
    • Support instant consultations when maxAge is set to 0.
  • Update AdrastiaUtilizationAndErrorAccumulator
    • Use the heartbeat as the maximum observation age when consulting the underlying oracle.
    • Support instant consultations when maxAge is set to 0.
  • Rename VenusIsolatedSBAccumulator to VenusSBAccumulator

Oracles

  • Add VenusOracleView: An oracle view that reads from Venus oracles.
  • Add OtfAggregatorOracle: An oracle aggregator that aggregates on-the-fly, rather than serving observations from storage.

Strategies

Aggregation strategies

  • Add hardcoded timestamp strategies: Rather than always using the current block timestamp, aggregation strategies can now customize the aggregation timestamp.
    • ThisBlock: Uses the current block timestamp.
    • EarliestObservation: Uses the timestamp of the earliest (oldest) observation.
    • LatestObservation: Uses the timestamp of the latest (newest) observation.
    • FirstObservation: Uses the timestamp of the first observation.
    • LastObservation: Uses the timestamp of the last observation.

v4.9.1

17 Sep 21:50
dca4463

Choose a tag to compare

Accumulators

  • Improve SAVPriceAccumulator: Adds conditional underlying oracle heartbeat validation.

v4.9.0

03 Aug 03:51
b9877f0

Choose a tag to compare

Dependencies

  • Upgrade OpenZeppelin Contracts to v4.9.6

Accumulators

  • Add SAVPriceAccumulator: An accumulator that tracks ERC4626 vault share prices.

v4.8.0

16 Jul 21:25
3316388

Choose a tag to compare

Accumulators

  • Add AdrastiaUtilizationAndErrorAccumulator: An accumulator that tracks and accumulates utilization and error based on an Adrastia supply & borrow oracle.

v4.7.1

23 May 20:16
dca565e

Choose a tag to compare

Accumulators

  • Add constructor sanitization
  • Fix EIP-165 compliance issue

Interfaces

  • Add a warning about using 0 for maxAge.

Oracles

  • Update PythOracleView
    • Add exponent validation
    • Add support for Pyth confidence intervals

v4.7.0

18 Apr 08:06
4e092bb

Choose a tag to compare

Accumulators

  • Modify AlocUtilizationAndErrorAccumulator: Add constructor flag to treat an empty ALOC as 0% utilized.

v4.6.1

15 Apr 02:12
440fda3

Choose a tag to compare

Accumulators

  • Fix bug in CompoundV2SBAccumulator: Some CEther markets used to cause reverts when updating the token mappings.

v4.6.0

14 Apr 21:55
a244e5d

Choose a tag to compare

Accumulators

  • Update CompoundV2SBAccumulator: Add support for CEther.
  • Add VenusIsolatedSBAccumulator: An accumulator that tracks and accumulates Venus Isolated Pools total supply and borrow amounts.