Releases: mstable/mStable-contracts
Release 4.2.3
Instead of the mStable MTA/WETH Staking BPT (mBPT) being held in the Staking Token BPT (stkBPT) contract, it is deposited into the new Balancer mBPT Gauge Deposit (mBPT-gauge).
MCCP 21: Stake BPT staked in mStable into Balancer Staking contract has details on why the change was done.
See Pull Request #350 for the detailed contract changes.
Full Changelog: v2.4.2...v2.4.3
Release 2.4.2
The main feature of this release is being able to withdraw base assets (bAssets) or Feeder Pool assets (fAssets) from Vaults or Save in one transaction.
Examples:
- Withdraw USDC bAsset from the Savings Vault (v-imUSD).
- Withdraw WBTC bAsset from Save (imBTC).
- Withdraw FEI fAsset from the Savings Vault (v-imUSD).
- Withdraw HBTC fAsset from from Save (imBTC).
See the following for more details on how the processes work
https://github.com/mstable/mStable-process-docs/blob/main/unwrapper/README.md#unwrapper
Contract changes
- New
ISavingsContractv3 interface with- new
redeemAndUnwrapfunction depositSavingsoverride withreferrerparam
- new
- Added
withdrawAndUnwrapfunction to vault contracts:BoostedVault,BoostedDualVault,StakingRewardsandStakingRewardsWithPlatformToken. - New
Unwrappercontract. SaveWrappercontract addeddepositoverride withreferrerparam
Full Changelog: v2.4.1...v2.4.2
Release 2.4.1
What's Changed
- restore missing TypeScript files in @mstable/protocol package
- Updates to Hardhat tasks
- Changed times from UTC to local times.
over-boostincludes new Feeder Pools TBTCV2, RAI and FEI.rewardsnow includes min AAVE/GUSD and AAVE/WBTC ratesrewardsfixed so it can handle zero COMP accruedstaked-snapnow has optional block argument to get historical datastaked-snapnow reports earned MTAdeploy-dud-contractsfor migration of mUSD from Iron Bank for BUSD and GUSD Feeder Poolsquest-complete-queuecan now run again different quests. eg the new Metanaut Space Programfeeder-mintcan now do a single mint or multi mint- Fixed staked tasks against mBPT which were resolving to the wrong contract address.
staked-snapnow has more info and better formattingdeployVaultadded optionalboostCoeffargument that defaults to 9 as per Staking V2 update.
- New Hardhat tasks
dials-snapwhich reports votes and donations for new staking dialsstaked-timewhich updates a staker's time multiplier
- New dummy contracts to migrate the mUSD in the GUSD and BUSD Feeder Pools back from Iron Bank
DudIntegrationis the replacement integration contract that a Feeder Pools use.DudPlatformto temporally act as the platform, needed because otherwise, the migration will fail. Can be later called by governance to clear which short-circuits all following deposits and sends all back to theDudIntegration, like in the cache it would.
Full Changelog: v2.4.0...v2.4.1
Release 2.4.0
What's Changed
- Adds
EmissionsControllermain contracts: Allows governors to vote on the weekly distribution of $MTAVotiumBribeForwarder: Allows users reward tokens to bribe vlCVX holders to vote for a Curve gauge using VotiumDisperseForwarder: Transfers reward tokens to a list of off-chain calculated recipients and amounts.RevenueBuyBack: Uses protocol revenue to buy MTA rewards for stakersBasicRewardsForwarder: Transfers any received reward tokens to another contract or account
- Adds Polygon Integration Contracts
- L2EmissionsController
- L2BridgeRecipient
- BridgeForwarder
- Hardhat tasks
NonPeggedFeederPoolto Deploy Non Pegged Feeder Pool
New Contributors
Full Changelog: v2.3.2...v2.4.0
Release 2.3.2
Post Staking V2 deployment
- Added
exittoIIncentivisedVotingLockupinterface used by MTA Staking V1 - Hardhat tasks to impersonate staking V1 txs
- Hardhat tasks to interact and impersonate with staking V2 contracts
- support for private transactions using the Taichi network
AAVEandCOMPliquidation Hardhat task now using private transactions- Hardhat rewards task now catches error if it can't get ALCX price from Uniswap V3
Release 2.3.1
Minor updates
- Optimised StakedToken
- Removed redundant files from package
Release 2.3.0
Release 2.2.4
Solidity upgrade and Hardhat task refactor
- Upgraded Solidity from 0.8.2 to 0.8.6
- Fixes to the
over-boostandrewardstasks - Refactor of Hardhat tasks
getSignerfactory that will work against Defender Relay of theDEFENDER_API_KEYandDEFENDER_API_SECRETenvironment variables- have been set, else uses the
IMPERSONATEenvironment variable if set, otherwise uses a random account. getChainwill resolve aChainenum from hardhat network and config.getNetworkAddresswill resolve a contract name to an address across different chainsresolveAddresswill resolve a contract name or token symbol to an address across different chainsresolveTokenwill resolve a token symbol and type to aTokenobject
Release 2.2.3
Alchemix Feeder Pool Integration
- New
AlchemixIntegrationcontract to connect the alUSD Feeder Pool to the Alchemix alUSD staking pool - New
BoostedDualVaultcontract that can pay two reward tokens. eg MTA and ALCX - Upgraded
Liquidatorto liquidate ALCX for alUSD
Release 2.2.2
- In the
StakingRewardandStakingRewardsWithPlatformTokencontracts, change the duration from a 7 days constant to an immutable set in the constructor. - Generate contract types into
dist/types/generatedfolder during compile.