Proposal: Protocol logic updates

  • Ampleforth Core release v1.4 - Minor interface update to the monetary policy and handling rebase failure when there is no valid oracle data onchain.

  • Spot Contracts release v4.1 - Bug fix wrt swap liquidity and new admin params to control underlying liquidity level (and thus vault’s rebase multiplier).

  • Spot Vaults release v4.1 - Bill broker supports single sided staking and events to keep track of fees and apy off-chain.

Review the attached diffs for more information.

5 Likes

I know we discussed some of these things on Discord, but otherwise the details are very sparse on how exactly the changes are implemented and what exactly that is done.

1 Like

These are the new implementations. We’ll upgrade through an on-chain action.

UFragmentsPolicy
0x671f768157f6C8A33aDA9b864C8DfaF5b13f1e9F

RolloverVault
0xA85Be82083E032EdF32a19028DF558484b399196

BillBroker
0x0CE64cD7583864f7005898Aa133C74DBccaca063

1 Like

Kicked off snapshot: Snapshot

1 Like

There aren’t any major functional changes to how AMPL and SPOT function. Mostly bug fixes and some interface changes.

  1. In the Ampleforth monetary policy, a rebase transaction used to previously revert on-chain if there wasn’t valid data from either of the oracles (cpi and 24hr vwap). A few weeks ago, we saw this happen and there was some down time. This transaction reversion seemed to have broken some centralized exchange integrations resulting in AMPL markets being paused for a few days. The new change would not explicitly revert, but rebase with a zero supply change (from the protocol’s perspective this is functionally equivalent). This should safe guard against downstream integrations which do not handle a rebase reversion exception.
  2. We’ve added an interface method on the Ampleforth monetary policy to fetch AMPL’s current CPI adjusted target rate. This is specifically for applications like Asymmetry who need to calculate SPOT’s FMV value on-chain.
  3. We fixed a logical bug in stAMPL which was preventing flash redemptions from happening briefly.
  4. We added single sided deposits to bill broker. So users can deposit SPOT or USD if the bill broker is unbalanced.
  5. Finally, we’ve added some event logs to the bill broker to help keep track of swap volume and APY on-chain (so users can see these metrics on the spot dapp)
3 Likes

I support these additions.

These are mostly small changes, and I’m guessing the only noticeable difference to most users would be the Bill Broker single sided deposits and stats that become unlocked.

The flash mint/redemption guardrail checks are more precise so it will be able to run in all the scenarios where it would be expected to.

The others are slight tweaks to interfaces that make it easier for downstream builders.

2 Likes