-
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
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.
- 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.
- 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.
- We fixed a logical bug in stAMPL which was preventing flash redemptions from happening briefly.
- We added single sided deposits to bill broker. So users can deposit SPOT or USD if the bill broker is unbalanced.
- 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