Skip to content

Instantly share code, notes, and snippets.

@pmckelvy1
Last active December 1, 2023 22:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmckelvy1/1865277f7daee304eae53b1504bf3df4 to your computer and use it in GitHub Desktop.
Save pmckelvy1/1865277f7daee304eae53b1504bf3df4 to your computer and use it in GitHub Desktop.

USDC Plus - USDC+

The following transaction batch is the proposed upgrade path for USDC+ to adopt improvements in the 3.0.1 version of the Reserve Protocol. This will allow USDC+ to trade wcUSDC. Included in this proposal is swapping out the current fUSDC-Vault asset for a raw version of fUSDC, that is not wrapped in an extra vault. Interacting with fUSDC is 10x more gas efficient than interacting with the current fUSDC-Vault, and since there are currently no plans for Flux to offer rewards, there is no need for the vault structure. If this proposal is passed an executed, trading will need to occur to swap out the old fUSDC-Vault tokens for fUSDC tokens. This can be done with 0 capital up front, using flashloans over the course of 1 or 2 dutch auctions.

Description Target Contract Method Data
Upgrade backingManager 0x0Ea1f556fe149cBc75C25C12C9A804937144fbf2 upgradeTo 0xBbC532A80DD141449330c1232C953Da6801Aed01
Upgrade rsrTrader 0x892E53828E264c142C929ce8f852352E6b799e19 upgradeTo 0x5e3e13d3d2a0adfe16f8EF5E7a2992A88E9e65AF
Upgrade rTokenTrader 0x0a1c10727F7aE292521078Dfc1280c6C01277EEf upgradeTo 0x5e3e13d3d2a0adfe16f8EF5E7a2992A88E9e65AF
Update Batch Auction Trade 0x7aFc1d0bDFE2F3887466534516447bA4cE97B305 setBatchTradeImplementation 0x4e9B97957a0d1F4c25E42Ccc69E4d2665433FEA3
Register new fUSDC asset 0xbCd2719E4862d1Eb32A36e8C956D3118ebB2f511 register 0x3C0a9143063Fc306F7D3cBB923ff4879d70Cf1EA
Register new wcUSDC asset 0xbCd2719E4862d1Eb32A36e8C956D3118ebB2f511 register 0x7Dee4DbeF75f93cCA06823Ac915Df990be3F1538
Update Basket 0x162587b5B4c01d26AfaFD4A1ccA61CdC632c9508 setPrimeBasket ["0x093c07787920eB34A0A0c7a09823510725Aee4Af","0x465a5a630482f3abD6d3b84B39B29b07214d19e5","0x7f7B77e49d5b30445f222764a794AFE14af062eB"]
[333329999999999960,333329999999999960,333340000000000025]
Refresh Basket 0x162587b5B4c01d26AfaFD4A1ccA61CdC632c9508 refreshBasket

After rebalancing is complete, the old fUSDC asset should to unregistered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment