v2.0.0-alpha
Pre-release
Pre-release
Changelog:
BondHelpers
- Added
computeRedeemableTrancheAmounts
, a method which calculates the tranche proportional amounts that can be redeemed before maturity
BondIssuer.sol
- Updated internal book keeping, to keep track of active bonds.
- Added a public poke function called
matureActive
, which invokesmature
on the active bond when its up for maturity
BasicFeeStrategy.sol
- Added a new configuration parameter which has to be set by the owner to allow debasement
- Updated rollover fee math to allow for debasement only when the parameter is set
PerpetualTranche.sol
- Added an authorized whitelist to perp. Rollovers can only be invoked by whitelisted addresses. If no address is whitelisted, it's publicly callable. Only owner can update the whitelist.
- Added helper methods to view and update the whitelist.
- Added a external helper method
getReserveTrancheValue
to calculate a given tranche's reserve value. - Updated all multiplication and division operations to use openzeppelin's
mulDiv
- Some minor function renaming and comment updates
RolloverVault.sol
- Create a new on-chain vault, where users deposit a collateral asset (like AMPL) to mint shares
- The asset is used to perform rollovers on
PerpetualTranche
- On redemption of shares, users get their share of the vault's assets