Skip to content

Releases: adrastia-oracle/adrastia-periphery

v4.7.1

26 Apr 02:19
0580150
Compare
Choose a tag to compare

Prudentia

Controllers

  • Update RateController
    • canUpdate now returns false if it's unable to compute the next rate
    • computeRate now reverts if the config hasn't been set

v4.7.0

18 Apr 21:07
e85c6a6
Compare
Choose a tag to compare

Dependencies

  • Upgrade adrastia-core to v4.7.0.

Accumulators

  • Update ManagedAlocUtilizationAndErrorAccumulator: Added a flag to consider an empty portfolio as 0% utilized.

Prudentia

Computers

  • Add HistoricalRatesComputer: An IRateComputer that fetches historical rates from an IHistoricalRates contract.
  • Add ManagedHistoricalRatesComputer: A HistoricalRatesComputer that implements standard management functions.
  • Add SlopedOracleMutationComputer: An OracleMutationComputer that applies a two-part slope function to the value returned by an oracle.
  • Add ManagedSlopedOracleMutationComputer: A SlopedOracleMutationComputer that implements standard management functions.

v4.6.2

16 Apr 01:34
083946c
Compare
Choose a tag to compare

Prudentia

Controllers

  • Update RateController
    • Allow unrestricted individual component weights
    • Allow total component weights to be above 100%
    • Modify computeRateInternal to cap the rate to the max possible value to prevent overflow

v4.6.1

15 Apr 03:16
2dd4266
Compare
Choose a tag to compare

Dependencies

  • Upgrade adrastia-core to v4.6.1.

Accumulators

  • Update ManagedCompoundV2SBAccumulator, ManagedIonicSBAccumulator, and ManagedVenusIsolatedV2SBAccumulator: Out of an abundance of caution, only those with the CONFIG_ADMIN role can refresh token mappings.

v4.6.0

14 Apr 23:36
d679417
Compare
Choose a tag to compare

Dependencies

  • Upgrade adrastia-core to v4.6.0.

Accumulators

  • Add ManagedVenusIsolatedV2SBAccumulator: A VenusIsolatedV2SBAccumulator that implements standard management functions.

v4.5.0

29 Mar 02:42
2fb5626
Compare
Choose a tag to compare

Dependencies

  • Upgrade adrastia-core to v4.5.0.

Accumulators

  • Add ManagedCompoundV2SBAccumulator: A CompoundV2SBAccumulator that implements standard management functions.
  • Add ManagedIonicSBAccumulator: An IonicSBAccumulator that implements standard management functions.

v4.4.0

26 Mar 21:36
96b635d
Compare
Choose a tag to compare

Dependencies

  • Upgrade adrastia-core to v4.4.0.

Accumulators

  • Add ManagedAlocUtilizationAndErrorAccumulator: An AlocUtilizationAndErrorAccumulator that implements standard management functions.

Prudentia

Controllers

  • Add PidController: A RateController extension that implements a PID controller.
  • Add ManagedPidController: A PidController that implements standard management functions.
  • Add TrueFiAlocPidController: A ManagedPidController designed for integration into TrueFi.

Transformers

  • Add IInputAndErrorTransformer: Interface for transforming input and error values in a PID controller.
  • Add NegativeErrorScalingTransformer: Implements the IInputAndErrorTransformer interface to scale negative error values.
  • Add PositiveErrorScalingTransformer: Implements the IInputAndErrorTransformer interface to scale positive error values.

v4.3.0

16 Mar 00:02
4be5cb5
Compare
Choose a tag to compare

Dependencies

  • Upgrade adrastia-core to v4.3.0.

Accumulators

  • Add ManagedAdrastiaPriceAccumulator

v4.2.0

30 Jan 00:33
318a5df
Compare
Choose a tag to compare

Dependencies

  • Upgrade adrastia-core to v4.2.0.

Accumulators

  • Ensure heartbeat is not zero in setConfig
  • Revert if the config is unchanged in setConfig

Oracles

  • Revert if the pause status is unchanged in setUpdatesPaused
  • Revert if the token config is unchanged in setTokenConfig
  • Revert if the config is unchanged in setConfig

Prudentia

Controllers

  • Revert if a component has zero weight in setConfig
  • Revert if duplicate components are provided in setConfig
  • Revert if the pause status is unchanged in setUpdatesPaused
  • Fix precision loss error in computeRateInternal

v4.1.0

08 Sep 20:49
84efc3e
Compare
Choose a tag to compare

Accumulators

  • Add ManagedCometSBAccumulator and ManagedAaveV3SBAccumulator
    • Allows for calculations of time-weighted average total supply and borrow amounts for Aave V3 and Compound III (Comet) pools.

Prudentia

Computers

  • Add [Managed/Aave]OracleMutationComputer: A contract that computes mutated values from Adrastia oracles.