Skip to content

Commit

Permalink
Update to new contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
corddry committed Feb 4, 2022
1 parent 93936df commit a6b7eee
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
18 changes: 9 additions & 9 deletions networks/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@
"GovernorBravoDelegateG1": "0xAAAaaAAAaaaa8FdB04F544F4EEe52939CddCe378",
"GovernorBravoDelegate": "0x563a63d650a5d259abae9248dddc6867813d3f87",
"FRAX": "0x853d955acef822db058eb8505911ed77f175b99e",
"cFRAX": "0x1ddaafee72ffc6cd60368f17ceb376692f69515f",
"cFRAXDelegate": "0x24aa720906378bb8364228bddb8cabbc1f6fe1ba",
"Proposal84PriceFeed": "0x15dE940e76Ad5771C49bb82D5083C9148Af9fDD0"
"cFRAX": "0xe7373A0D692F60400AF4A5ac6dfB927840414F86",
"cFRAXDelegate": "0xa035b9e130f2b1aedc733eefb1c67ba4c503491f",
"Proposal84PriceFeed": "0xA469ddB19F903F4de66FdAE32Eb0d5a87C3826b3"
},
"Blocks": {
"cAAVEDelegate": 12654137,
Expand Down Expand Up @@ -166,9 +166,9 @@
"GovernorBravoDelegator": 12006099,
"GovernorBravoDelegateG1": 12005518,
"GovernorBravoDelegate": 13170179,
"cFRAX": 13860573,
"cFRAXDelegate": 11960638,
"Proposal84PriceFeed": 14034389
"cFRAX": 14137842,
"cFRAXDelegate": 12654137,
"Proposal84PriceFeed": 14138152
},
"PriceData": {
"description": "Open Oracle Price Data",
Expand Down Expand Up @@ -526,7 +526,7 @@
"description": "Standard CErc20 Delegate"
},
"cFRAXDelegate": {
"address": "0x24aa720906378bb8364228bddb8cabbc1f6fe1ba",
"address": "0xa035b9e130f2b1aedc733eefb1c67ba4c503491f",
"contract": "CErc20Delegate",
"description": "Standard CErc20 Delegate"
}
Expand Down Expand Up @@ -702,8 +702,8 @@
"decimals": 8,
"underlying": "0x853d955acef822db058eb8505911ed77f175b99e",
"contract": "CErc20Delegator",
"initial_exchange_rate_mantissa": "2000000000000000000",
"address": "0x1ddaAfEe72Ffc6Cd60368f17cEB376692F69515F"
"initial_exchange_rate_mantissa": "200000000000000000000000000",
"address": "0xe7373A0D692F60400AF4A5ac6dfB927840414F86"
}
},
"InterestRateModel": {
Expand Down
12 changes: 7 additions & 5 deletions spec/sim/0084-add-market-frax/hypothetical_proposal.sim
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
#!/usr/bin/env -S yarn repl -s

-- Adapted from TylerEther's USDP tests --
-- Adapted from TylerEther's USDP & FEI tests --

PrintTransactionLogs

-- Token holder addresses for mocking
Alias CompHolder "0x7587caefc8096f5f40acb83a09df031a018c66ec"
Alias CompHolder "0x7587caefc8096f5f40acb83a09df031a018c66ec" -- Compound Team 2
Alias CompHolder2 "0x5608169973d639649196A84EE4085a708bcBf397" -- Compound Team 3
Alias TokenHolder "0xC564EE9f21Ed8A2d8E7e76c085740d5e4c5FaFbE" -- AnySwap Fantom Bridge
Alias CUSDCHolder "0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8" -- Binance 7

-- New oracle address
Alias NewOracle "0x15dE940e76Ad5771C49bb82D5083C9148Af9fDD0"
Alias NewOracle "0xA469ddB19F903F4de66FdAE32Eb0d5a87C3826b3"

Web3Fork "https://mainnet-eth.compound.finance/@14034556" (CompHolder TokenHolder CUSDCHolder)
Web3Fork "https://mainnet-eth.compound.finance/@14138248" (CompHolder CompHolder2 TokenHolder CUSDCHolder)
UseConfigs mainnet

--------------------------------------------------------------------
-- Governance proposal
--------------------------------------------------------------------
-- Delegate and propose
From CompHolder (Comp Delegate CompHolder)
From CompHolder (GovernorBravo GovernorBravo Propose "Add FRAX Market" [(Address Comptroller) (Address Comptroller) (Address cFRAX)] [0 0 0] ["_setPriceOracle(address)" "_supportMarket(address)" "_setReserveFactor(uint256)"] [[(Address NewOracle)] [(Address cFRAX)] [150000000000000000]])
From CompHolder2 (Comp Delegate CompHolder)
From CompHolder (GovernorBravo GovernorBravo Propose "Add FRAX Market" [(Address Comptroller) (Address Comptroller) (Address cFRAX)] [0 0 0] ["_setPriceOracle(address)" "_supportMarket(address)" "_setReserveFactor(uint256)"] [[(Address NewOracle)] [(Address cFRAX)] [250000000000000000]])

-- Fast forward, vote, queue, execute
MineBlock
Expand Down

0 comments on commit a6b7eee

Please sign in to comment.