Advertisement
Guest User

cFRAX Simulation 2

a guest
Feb 4th, 2022
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 27.27 KB | None | 0 0
  1. $ ./spec/sim/0084-add-market-frax/hypothetical_proposal.sim
  2. yarn run v1.22.17
  3. $ ./scenario/script/repl -s ./spec/sim/0084-add-market-frax/hypothetical_proposal.sim
  4. Skipping Scenario Rebuild (set rebuild=true to force)
  5. Skipping Contract Rebuild (set rebuild=true to force)
  6. Using network development Web3ProviderEngine
  7. Network: development
  8. Accounts:
  9.     0xF00d84380E61CE9D7C2E3ae1b986ff970601aF13 (default,root,admin,first)
  10.     0x23D492a44fB8091A364a1331D7E47d0F0251c6BC (bank,second)
  11.     0xf6F04972a143aF96C1f39919655Cb33A46072F60 (geoff,third,guardian)
  12.     0x035a276D87Ead619A539c0aFF398515A433ccDc3 (torrey,fourth)
  13.     0x43a4Fd2f6f483a2b5c2399819d1F57cBCA6f9564 (robert,fifth)
  14.     0xed8B114494762DC6df419CB191e40d9996aeaDE6 (coburn,sixth)
  15.     0xC297FD5a3E08a71A3Fec2Eb431109d26e623210d (jared,seventh)
  16.     0xc6667bbd6EBCcbFB07e52712d78fa41AC19e01b9 ()
  17.     0xcEC70619043a62dd29387d4e66438d75e1b28F3C ()
  18.     0x3d891f10488f6E6e24ed2E52619294f308CDC3d4 ()
  19. Available macros: Successfully,AllowFailures,PricedComptroller,NewComptroller,NewCToken,NewCTokenBringERC20,NewCTokenImmutable,NewEtherToken,ListedCToken,ListedCTokenImmutable,ListedEtherToken,ListedEtherTokenMinted,SetPriceCF,Give,Donate,Prep,Allow,AccrueInterest,Mint,SendMintEth,CallMintEth,Redeem,RedeemEth,RedeemUnderlying,RedeemUnderlyingEth,BorrowEth,Borrow,RepayBorrow,RepayBorrowEth,RepayBorrowEthMax,RepayBorrowBehalf,RepayBorrowEthBehalf,Liquidate,LiquidateEthColl,LiquidateEthBorrow,Seize,EvilSeize,Support,SetCollateralFactor,AddReserves,ReduceReserves,FastForward,EnterMarkets,ExitMarket,Transfer,Cash,QuickMint,QuickBorrow,BorrowAndRepayWithInterest,BorrowAndRepayEthWithInterest
  20.  
  21. Running script: ./spec/sim/0084-add-market-frax/hypothetical_proposal.sim...
  22. Command: PrintTransactionLogs
  23. Command: Alias CompHolder "0x7587caefc8096f5f40acb83a09df031a018c66ec" -- Compound Team 2
  24. Command: Alias CompHolder2 "0x5608169973d639649196A84EE4085a708bcBf397" -- Compound Team 3
  25. Command: Alias TokenHolder "0xC564EE9f21Ed8A2d8E7e76c085740d5e4c5FaFbE" -- AnySwap Fantom Bridge
  26. Command: Alias CUSDCHolder "0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8" -- Binance 7
  27. Command: Alias NewOracle "0xA469ddB19F903F4de66FdAE32Eb0d5a87C3826b3"
  28. Command: Web3Fork "https://mainnet-eth.compound.finance/@14138248" (CompHolder CompHolder2 TokenHolder CUSDCHolder)
  29. Command: UseConfigs mainnet
  30. Contracts:
  31.     ZRX: 0xE41d2489571d322189246DaFA5ebDe1F4699F498
  32.     cUSDC: 0x39AA39c021dfbaE8faC545936693aC917d5E7563
  33.     KNC: 0xdd974d5c2e2928dea5f71b9825b8b646686bd200
  34.     Pair_DAI_ETH: 0xA478c2975Ab1Ea89e8196811F51A7B7Ade33eB11
  35.     cLINKDelegate: 0x24aa720906378bb8364228bddb8cabbc1f6fe1ba
  36.     FRAX: 0x853d955acef822db058eb8505911ed77f175b99e
  37.     Uniswap: 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f
  38.     GovernorBravoDelegateG1: 0xAAAaaAAAaaaa8FdB04F544F4EEe52939CddCe378
  39.     cFRAX: 0xe7373A0D692F60400AF4A5ac6dfB927840414F86
  40.     PriceOracle: 0x02557a5e05defeffd4cae6d83ea3d173b272c904
  41.     PriceFeed: 0x6D2299C48a8dD07a872FDd0F8233924872Ad1071
  42.     PriceOracleProxy: 0xDDc46a3B076aec7ab3Fc37420A8eDd2959764Ec4
  43.     Maximillion: 0xf859A1AD94BcF445A406B892eF0d3082f4174088
  44.     Base200bps_Slope2000bps_Jump20000bps_Kink90: 0x6bc8fE27D0c7207733656595e73c0D5Cf7AfaE36
  45.     Pair_ETH_USDC: 0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc
  46.     GovernorAlpha: 0xc0dA01a04C3f3E0be433606045bB7017A7323E38
  47.     cDAI: 0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643
  48.     CompoundLens: 0xdCbDb7306c6Ff46f77B349188dC18cEd9DF30299
  49.     IRM_USDC_Updateable: 0xD8EC56013EA119E7181d231E5048f90fBbe753c0
  50.     Pair_BAT_ETH: 0xb6909b960dbbe7392d405429eb2b3649752b4838
  51.     cFRAXDelegate: 0xa035b9e130f2b1aedc733eefb1c67ba4c503491f
  52.     CrowdProposalFactory: 0x54a06047087927D9B0fb21c1cf0ebd792764dDB8
  53.     DAI: 0x6B175474E89094C44Da98b954EedeAC495271d0F
  54.     StdComptroller: 0x62F18C451af964197341d3c86D27e98C41BB8fcC
  55.     Poster: 0x3c6809319201b978d821190ba03fa19a3523bd96
  56.     cUNI: 0x35a18000230da775cac24873d00ff85bccded550
  57.     IRM_UNI_Updateable: 0xd88b94128ff2b8cf2d7886cd1c1e46757418ca2a
  58.     Unitroller: 0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B
  59.     cDaiDelegate: 0xbB8bE4772fAA655C255309afc3c5207aA7b896Fd
  60.     USDT: 0xdAC17F958D2ee523a2206206994597C13D831ec7
  61.     Pair_COMP_ETH: 0xcffdded873554f362ac02f8fb1f02e5ada10516f
  62.     GovernorBravoDelegator: 0xc0da02939e1441f497fd74f78ce7decb17b66529
  63.     Reservoir: 0x2775b1c75658Be0F640272CCb8c72ac986009e38
  64.     cSUSHI: 0x4b0181102a0112a2ef11abee5563bb4a3176c9d7
  65.     Comptroller: 0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B
  66.     AAVE: 0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9
  67.     COMP: 0xc00e94Cb662C3520282E6f5717214004A7f26888
  68.     UNI: 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984
  69.     cUSDT: 0xf650C3d88D12dB855b8bf7D11Be6C55A4e07dCC9
  70.     cMKR: 0x95b4eF2869eBD94BEb4eEE400a99824BF5DC325b
  71.     TUSD: 0x0000000000085d4780B73119b644AE5ecd22b376
  72.     cBAT: 0x6C8c6b02E7b2BE14d4fA6022Dfd6d75921D90E4E
  73.     cAAVE: 0xe65cdb6479bac1e22340e4e755fae7e509ecd06c
  74.     cCOMP: 0x70e36f6bf80a52b3b46b3af8e106cc0ed743e8e4
  75.     cUniDelegate: 0x338f7e5d19d9953b76dd81446b142c2d9fe03482
  76.     Pair_REP_ETH: 0xec2D2240D02A8cf63C3fA0B7d2C5a3169a319496
  77.     SUSHI: 0x6b3595068778dd592e39a122f4f5a5cf09c90fe2
  78.     PriceData: 0xc629c26dced4277419cde234012f8160a0278a79
  79.     Base500bps_Slope1500bps: 0xd928c8ead620bb316d2cefe3caf81dc2dec6ff63
  80.     DSR_Kink_9000bps_Jump_12000bps_AssumedRF_500bps: 0xec163986cC9a6593D6AdDcBFf5509430D348030F
  81.     MKR: 0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2
  82.     GovernorBravo: 0xc0da02939e1441f497fd74f78ce7decb17b66529
  83.     cSUSHIDelegate: 0xa035b9e130f2b1aedc733eefb1c67ba4c503491f
  84.     Pair_ETH_ZRX: 0xc6f348dd3b91a56d117ec0071c1e9b83c0996de4
  85.     Base0bps_Slope2000bps: 0xc64C4cBA055eFA614CE01F4BAD8A9F519C4f8FaB
  86.     cWBTC2: 0xccF4429DB6322D5C611ee964527D42E5d685DD6a
  87.     Pair_ETH_KNC: 0xf49c43ae0faf37217bdcb00df478cf793edd6687
  88.     cTUSD: 0x12392f67bdf24fae0af363c24ac620a2f67dad86
  89.     BAT: 0x0D8775F648430679A709E98d2b0Cb6250d2887EF
  90.     StdComptroller_2_6: 0x97BD4Cc841FC999194174cd1803C543247a014fe
  91.     Base200bps_Slope1000bps: 0x0c3f8df27e1a00b47653fde878d68d35f00714c0
  92.     cETH: 0x4Ddc2D193948926D02f9B1fE9e1daa0718270ED5
  93.     cUsdtDelegate: 0x976aa93ca5Aaa569109f4267589c619a097f001D
  94.     cMKRDelegate: 0xa035b9e130f2b1aedc733eefb1c67ba4c503491f
  95.     StdComptrollerG2: 0xf592eF673057a451c49c9433E278c5d59b56132c
  96.     cAAVEDelegate: 0xa035b9e130f2b1aedc733eefb1c67ba4c503491f
  97.     cCOMPDelegate: 0x338f7e5d19d9953b76dd81446b142c2d9fe03482
  98.     DSR_Kink_9000bps_Jump_12000bps_AssumedRF_20000bps: 0x000000007675b5E1dA008f037A0800B309e0C493
  99.     Base500bps_Slope1200bps: 0xa1046abfc2598F48C44Fb320d281d3F3c0733c9a
  100.     cSAI: 0xF5DCe57282A584D2746FaF1593d3121Fcac444dC
  101.     StdComptrollerG3: 0x9D0a0443FF4bB04391655B8cD205683d9fA75550
  102.     Timelock: 0x6d903f6003cca6255D85CcA4D3B5E5146dC33925
  103.     IRM_COMP_Updateable: 0xd956188795ca6F4A74092ddca33E0Ea4cA3a1395
  104.     Base200bps_Slope3000bps: 0xBAE04CbF96391086dC643e842b517734E214D698
  105.     GovernorBravoDelegate: 0x563a63d650a5d259abae9248dddc6867813d3f87
  106.     Proposal84PriceFeed: 0xA469ddB19F903F4de66FdAE32Eb0d5a87C3826b3
  107.     IRM_USDT_Updateable: 0xFB564da37B41b2F6B6EDcc3e56FbF523bD9F2012
  108.     StdComptrollerG4: 0xAf601CbFF871d0BE62D18F79C31e387c76fa0374
  109.     Pair_WBTC_ETH: 0xbb2b8038a1640196fbe3e38816f3e67cba72d940
  110.     Pair_LINK_ETH: 0xa2107fa5b38d9bbd2c461d6edf11b11a50f6b974
  111.     cYFI: 0x80a2ae356fc9ef4305676f7a3e2ed04e12c33946
  112.     cTUSDDelegate: 0xce526fa199d2f772abbc5b40b3284cdab1b8e6de
  113.     StdComptrollerG5: 0x7b5e3521a049C8fF88e6349f33044c6Cc33c113c
  114.     cREP: 0x158079Ee67Fce2f58472A96584A73C7Ab9AC95c1
  115.     Base200bps_Slope2000bps_Jump8000bps_Kink90: 0x40C0C2c565335fa9C4235aC8E1CbFE2c97BAC13A
  116.     WBTC: 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599
  117.     cWBTC2Delegate: 0x24aa720906378bb8364228bddb8cabbc1f6fe1ba
  118.     LINK: 0x514910771af9ca656af840dff83e8264ecf986ca
  119.     Base200bps_Slope222bps_Kink90_Jump40: 0x5562024784cc914069d67D89a28e3201bF7b57E7
  120.     SAI: 0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359
  121.     YFI: 0x0bc529c00c6401aef6d220be8c6ea1667f6ad93e
  122.     REP: 0x1985365e9f78359a9B6AD760e32412f4a445E862
  123.     wbtc2_irm: 0xF2e5dB36B0682f2CD6bC805c3a4236194e01f4D5
  124.     cZRX: 0xB3319f5D18Bc0D84dD1b4825Dcde5d5f7266d407
  125.     cWBTC: 0xC11b1268C1A384e55C48c2391d8d480264A3A7F4
  126.     cLINK: 0xface851a4921ce59e912d19329929ce6da6eb0c7
  127.     USDC: 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
  128.     cYFIDelegate: 0xa035b9e130f2b1aedc733eefb1c67ba4c503491f
  129.     DSR_Updateable: 0xfeD941d39905B23D6FAf02C8301d40bD4834E27F
  130. Command: From CompHolder (Comp Delegate CompHolder)
  131. EMITTED EVENTS:    [
  132.   Result {
  133.     '0': '0x7587cAefc8096f5F40ACB83A09Df031a018C66ec',
  134.     '1': '0x0000000000000000000000000000000000000000',
  135.     '2': '0x7587cAefc8096f5F40ACB83A09Df031a018C66ec',
  136.     __length__: 3,
  137.     delegator: '0x7587cAefc8096f5F40ACB83A09Df031a018C66ec',
  138.     fromDelegate: '0x0000000000000000000000000000000000000000',
  139.     toDelegate: '0x7587cAefc8096f5F40ACB83A09Df031a018C66ec'
  140.   },
  141.   Result {
  142.     '0': '0x7587cAefc8096f5F40ACB83A09Df031a018C66ec',
  143.     '1': '0',
  144.     '2': '364555520000000000000000',
  145.     __length__: 3,
  146.     delegate: '0x7587cAefc8096f5F40ACB83A09Df031a018C66ec',
  147.     previousBalance: '0',
  148.     newBalance: '364555520000000000000000'
  149.   }
  150. ]
  151. Action: "Delegated from" 0x7587caefc8096f5f40acb83a09df031a018c66ec to 0x7587caefc8096f5f40acb83a09df031a018c66ec
  152. Command: From CompHolder2 (Comp Delegate CompHolder)
  153. EMITTED EVENTS:    [
  154.   Result {
  155.     '0': '0x5608169973d639649196A84EE4085a708bcBf397',
  156.     '1': '0x0000000000000000000000000000000000000000',
  157.     '2': '0x7587cAefc8096f5F40ACB83A09Df031a018C66ec',
  158.     __length__: 3,
  159.     delegator: '0x5608169973d639649196A84EE4085a708bcBf397',
  160.     fromDelegate: '0x0000000000000000000000000000000000000000',
  161.     toDelegate: '0x7587cAefc8096f5F40ACB83A09Df031a018C66ec'
  162.   },
  163.   Result {
  164.     '0': '0x7587cAefc8096f5F40ACB83A09Df031a018C66ec',
  165.     '1': '364555520000000000000000',
  166.     '2': '564555520000000000000000',
  167.     __length__: 3,
  168.     delegate: '0x7587cAefc8096f5F40ACB83A09Df031a018C66ec',
  169.     previousBalance: '364555520000000000000000',
  170.     newBalance: '564555520000000000000000'
  171.   }
  172. ]
  173. Action: "Delegated from" 0x5608169973d639649196A84EE4085a708bcBf397 to 0x7587caefc8096f5f40acb83a09df031a018c66ec
  174. Command: 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]])
  175. > EMITTED EVENTS:    [
  176.   Result {
  177.     '0': '84',
  178.     '1': '0x7587cAefc8096f5F40ACB83A09Df031a018C66ec',
  179.     '2': [
  180.       '0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B',
  181.       '0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B',
  182.       '0xe7373A0D692F60400AF4A5ac6dfB927840414F86'
  183.     ],
  184.     '3': [ '0', '0', '0' ],
  185.     '4': [
  186.       '_setPriceOracle(address)',
  187.       '_supportMarket(address)',
  188.       '_setReserveFactor(uint256)'
  189.     ],
  190.     '5': [
  191.       '0x000000000000000000000000a469ddb19f903f4de66fdae32eb0d5a87c3826b3',
  192.       '0x000000000000000000000000e7373a0d692f60400af4a5ac6dfb927840414f86',
  193.       '0x00000000000000000000000000000000000000000000000003782dace9d90000'
  194.     ],
  195.     '6': '14151392',
  196.     '7': '14171102',
  197.     '8': 'Add FRAX Market',
  198.     __length__: 9,
  199.     id: '84',
  200.     proposer: '0x7587cAefc8096f5F40ACB83A09Df031a018C66ec',
  201.     targets: [
  202.       '0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B',
  203.       '0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B',
  204.       '0xe7373A0D692F60400AF4A5ac6dfB927840414F86'
  205.     ],
  206.     values: [ '0', '0', '0' ],
  207.     signatures: [
  208.       '_setPriceOracle(address)',
  209.       '_supportMarket(address)',
  210.       '_setReserveFactor(uint256)'
  211.     ],
  212.     calldatas: [
  213.       '0x000000000000000000000000a469ddb19f903f4de66fdae32eb0d5a87c3826b3',
  214.       '0x000000000000000000000000e7373a0d692f60400af4a5ac6dfb927840414f86',
  215.       '0x00000000000000000000000000000000000000000000000003782dace9d90000'
  216.     ],
  217.     startBlock: '14151392',
  218.     endBlock: '14171102',
  219.     description: 'Add FRAX Market'
  220.   }
  221. ]
  222. Action: Created new proposal "Add FRAX Market" with id=84 in Governor
  223. Command: MineBlock
  224. Command: AdvanceBlocks 14000
  225. Command: From CompHolder (GovernorBravo GovernorBravo Proposal LastProposal Vote For)
  226. EMITTED EVENTS:    [
  227.   Result {
  228.     '0': '0x7587cAefc8096f5F40ACB83A09Df031a018C66ec',
  229.     '1': '84',
  230.     '2': '1',
  231.     '3': '564555520000000000000000',
  232.     '4': '',
  233.     __length__: 5,
  234.     voter: '0x7587cAefc8096f5F40ACB83A09Df031a018C66ec',
  235.     proposalId: '84',
  236.     support: '1',
  237.     votes: '564555520000000000000000',
  238.     reason: ''
  239.   }
  240. ]
  241. Action: Cast For vote from CompHolder (0x7587...) for proposal 84
  242. Command: AdvanceBlocks 20000
  243. Command: GovernorBravo GovernorBravo Proposal LastProposal Queue
  244. EMITTED EVENTS:    [
  245.   Result {
  246.     '0': '0xca611870990c50eb5351279922ab39caf9ded6d669534a120efd206ce008585d',
  247.     '1': '0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B',
  248.     '2': '0',
  249.     '3': '_setPriceOracle(address)',
  250.     '4': '0x000000000000000000000000a469ddb19f903f4de66fdae32eb0d5a87c3826b3',
  251.     '5': '1644133624',
  252.     __length__: 6,
  253.     txHash: '0xca611870990c50eb5351279922ab39caf9ded6d669534a120efd206ce008585d',
  254.     target: '0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B',
  255.     value: '0',
  256.     signature: '_setPriceOracle(address)',
  257.     data: '0x000000000000000000000000a469ddb19f903f4de66fdae32eb0d5a87c3826b3',
  258.     eta: '1644133624'
  259.   },
  260.   Result {
  261.     '0': '0x39b1010f1480f8ac1417b9daf8e6af2afddf06c75bfbdc2c83834b1f68fb4f48',
  262.     '1': '0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B',
  263.     '2': '0',
  264.     '3': '_supportMarket(address)',
  265.     '4': '0x000000000000000000000000e7373a0d692f60400af4a5ac6dfb927840414f86',
  266.     '5': '1644133624',
  267.     __length__: 6,
  268.     txHash: '0x39b1010f1480f8ac1417b9daf8e6af2afddf06c75bfbdc2c83834b1f68fb4f48',
  269.     target: '0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B',
  270.     value: '0',
  271.     signature: '_supportMarket(address)',
  272.     data: '0x000000000000000000000000e7373a0d692f60400af4a5ac6dfb927840414f86',
  273.     eta: '1644133624'
  274.   },
  275.   Result {
  276.     '0': '0x396b84c8f3ff5a38145093308bfe7afa6cd82e5a19b91a180460b0c1ad676df7',
  277.     '1': '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  278.     '2': '0',
  279.     '3': '_setReserveFactor(uint256)',
  280.     '4': '0x00000000000000000000000000000000000000000000000003782dace9d90000',
  281.     '5': '1644133624',
  282.     __length__: 6,
  283.     txHash: '0x396b84c8f3ff5a38145093308bfe7afa6cd82e5a19b91a180460b0c1ad676df7',
  284.     target: '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  285.     value: '0',
  286.     signature: '_setReserveFactor(uint256)',
  287.     data: '0x00000000000000000000000000000000000000000000000003782dace9d90000',
  288.     eta: '1644133624'
  289.   },
  290.   Result {
  291.     '0': '84',
  292.     '1': '1644133624',
  293.     __length__: 2,
  294.     id: '84',
  295.     eta: '1644133624'
  296.   }
  297. ]
  298. Action: Queue proposal proposal 84 from default (0xfa01...)
  299. Command: IncreaseTime 604910
  300. Command: GovernorBravo GovernorBravo Proposal LastProposal Execute
  301. EMITTED EVENTS:    [
  302.   Result {
  303.     '0': '0x046728da7cb8272284238bD3e47909823d63A58D',
  304.     '1': '0xA469ddB19F903F4de66FdAE32Eb0d5a87C3826b3',
  305.     __length__: 2,
  306.     oldPriceOracle: '0x046728da7cb8272284238bD3e47909823d63A58D',
  307.     newPriceOracle: '0xA469ddB19F903F4de66FdAE32Eb0d5a87C3826b3'
  308.   },
  309.   Result {
  310.     '0': '0xca611870990c50eb5351279922ab39caf9ded6d669534a120efd206ce008585d',
  311.     '1': '0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B',
  312.     '2': '0',
  313.     '3': '_setPriceOracle(address)',
  314.     '4': '0x000000000000000000000000a469ddb19f903f4de66fdae32eb0d5a87c3826b3',
  315.     '5': '1644133624',
  316.     __length__: 6,
  317.     txHash: '0xca611870990c50eb5351279922ab39caf9ded6d669534a120efd206ce008585d',
  318.     target: '0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B',
  319.     value: '0',
  320.     signature: '_setPriceOracle(address)',
  321.     data: '0x000000000000000000000000a469ddb19f903f4de66fdae32eb0d5a87c3826b3',
  322.     eta: '1644133624'
  323.   },
  324.   Result {
  325.     '0': '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  326.     __length__: 1,
  327.     cToken: '0xe7373A0D692F60400AF4A5ac6dfB927840414F86'
  328.   },
  329.   Result {
  330.     '0': '0x39b1010f1480f8ac1417b9daf8e6af2afddf06c75bfbdc2c83834b1f68fb4f48',
  331.     '1': '0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B',
  332.     '2': '0',
  333.     '3': '_supportMarket(address)',
  334.     '4': '0x000000000000000000000000e7373a0d692f60400af4a5ac6dfb927840414f86',
  335.     '5': '1644133624',
  336.     __length__: 6,
  337.     txHash: '0x39b1010f1480f8ac1417b9daf8e6af2afddf06c75bfbdc2c83834b1f68fb4f48',
  338.     target: '0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B',
  339.     value: '0',
  340.     signature: '_supportMarket(address)',
  341.     data: '0x000000000000000000000000e7373a0d692f60400af4a5ac6dfb927840414f86',
  342.     eta: '1644133624'
  343.   },
  344.   Result {
  345.     '0': '0',
  346.     '1': '0',
  347.     '2': '1000000000000000000',
  348.     '3': '0',
  349.     __length__: 4,
  350.     cashPrior: '0',
  351.     interestAccumulated: '0',
  352.     borrowIndex: '1000000000000000000',
  353.     totalBorrows: '0'
  354.   },
  355.   Result {
  356.     '0': '0',
  357.     '1': '250000000000000000',
  358.     __length__: 2,
  359.     oldReserveFactorMantissa: '0',
  360.     newReserveFactorMantissa: '250000000000000000'
  361.   },
  362.   Result {
  363.     '0': '0x396b84c8f3ff5a38145093308bfe7afa6cd82e5a19b91a180460b0c1ad676df7',
  364.     '1': '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  365.     '2': '0',
  366.     '3': '_setReserveFactor(uint256)',
  367.     '4': '0x00000000000000000000000000000000000000000000000003782dace9d90000',
  368.     '5': '1644133624',
  369.     __length__: 6,
  370.     txHash: '0x396b84c8f3ff5a38145093308bfe7afa6cd82e5a19b91a180460b0c1ad676df7',
  371.     target: '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  372.     value: '0',
  373.     signature: '_setReserveFactor(uint256)',
  374.     data: '0x00000000000000000000000000000000000000000000000003782dace9d90000',
  375.     eta: '1644133624'
  376.   },
  377.   Result { '0': '84', __length__: 1, id: '84' }
  378. ]
  379. Action: Execute proposal proposal 84 from default (0xfa01...)
  380. Command: Assert True (Comptroller CheckListed cFRAX)
  381. Command: CToken cFRAX AccrueInterest
  382. EMITTED EVENTS:    [
  383.   Result {
  384.     '0': '0',
  385.     '1': '0',
  386.     '2': '1000000000000000000',
  387.     '3': '0',
  388.     __length__: 4,
  389.     cashPrior: '0',
  390.     interestAccumulated: '0',
  391.     borrowIndex: '1000000000000000000',
  392.     totalBorrows: '0'
  393.   }
  394. ]
  395. Action: CToken cFRAX: Interest accrued
  396. Command: From TokenHolder (Erc20 FRAX Approve (Address cFRAX) 10e18)
  397. EMITTED EVENTS:    [
  398.   Result {
  399.     '0': '0xC564EE9f21Ed8A2d8E7e76c085740d5e4c5FaFbE',
  400.     '1': '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  401.     '2': '10000000000000000000',
  402.     __length__: 3,
  403.     owner: '0xC564EE9f21Ed8A2d8E7e76c085740d5e4c5FaFbE',
  404.     spender: '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  405.     amount: '10000000000000000000'
  406.   }
  407. ]
  408. Action: Approved FRAX ERC-20 token for 0xC564EE9f21Ed8A2d8E7e76c085740d5e4c5FaFbE of 1e+19
  409. Command: Expect Changes (Erc20 FRAX TokenBalance TokenHolder) -10e18
  410. Command: Expect Changes (Erc20 FRAX TokenBalance cFRAX) +10e18
  411. Command: From TokenHolder (CToken cFRAX Mint 10e18)
  412. EMITTED EVENTS:    [
  413.   Result {
  414.     '0': '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  415.     '1': '0xC564EE9f21Ed8A2d8E7e76c085740d5e4c5FaFbE',
  416.     '2': '0',
  417.     '3': '1000000000000000000000000000000000000',
  418.     __length__: 4,
  419.     cToken: '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  420.     supplier: '0xC564EE9f21Ed8A2d8E7e76c085740d5e4c5FaFbE',
  421.     compDelta: '0',
  422.     compSupplyIndex: '1000000000000000000000000000000000000'
  423.   },
  424.   Result {
  425.     '0': '0',
  426.     '1': '0',
  427.     '2': '1000000000000000000',
  428.     '3': '0',
  429.     __length__: 4,
  430.     cashPrior: '0',
  431.     interestAccumulated: '0',
  432.     borrowIndex: '1000000000000000000',
  433.     totalBorrows: '0'
  434.   },
  435.   undefined,
  436.   Result {
  437.     '0': '0xC564EE9f21Ed8A2d8E7e76c085740d5e4c5FaFbE',
  438.     '1': '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  439.     '2': '0',
  440.     __length__: 3,
  441.     owner: '0xC564EE9f21Ed8A2d8E7e76c085740d5e4c5FaFbE',
  442.     spender: '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  443.     amount: '0'
  444.   },
  445.   Result {
  446.     '0': '0xC564EE9f21Ed8A2d8E7e76c085740d5e4c5FaFbE',
  447.     '1': '10000000000000000000',
  448.     '2': '50000000000',
  449.     __length__: 3,
  450.     minter: '0xC564EE9f21Ed8A2d8E7e76c085740d5e4c5FaFbE',
  451.     mintAmount: '10000000000000000000',
  452.     mintTokens: '50000000000'
  453.   }
  454. ]
  455. Action: CToken cFRAX: TokenHolder (0xC564...) mints 1e+19
  456. Command: From CUSDCHolder (Erc20 USDC Approve (Address cUSDC) 10000e6)
  457. EMITTED EVENTS:    [
  458.   Result {
  459.     '0': '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  460.     '1': '0x39AA39c021dfbaE8faC545936693aC917d5E7563',
  461.     '2': '10000000000',
  462.     __length__: 3,
  463.     owner: '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  464.     spender: '0x39AA39c021dfbaE8faC545936693aC917d5E7563',
  465.     amount: '10000000000'
  466.   }
  467. ]
  468. Action: Approved USDC ERC-20 token for 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8 of 1e+10
  469. Command: From CUSDCHolder (CToken cUSDC Mint 1000e6)
  470. EMITTED EVENTS:    [
  471.   Result {
  472.     '0': '0x39AA39c021dfbaE8faC545936693aC917d5E7563',
  473.     '1': '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  474.     '2': '0',
  475.     '3': '37387452878782409477293742258065601249720',
  476.     __length__: 4,
  477.     cToken: '0x39AA39c021dfbaE8faC545936693aC917d5E7563',
  478.     supplier: '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  479.     compDelta: '0',
  480.     compSupplyIndex: '37387452878782409477293742258065601249720'
  481.   },
  482.   Result {
  483.     '0': '754563686900',
  484.     '1': '1227431300776277893',
  485.     '2': '1526286509122427',
  486.     __length__: 3,
  487.     interestAccumulated: '754563686900',
  488.     borrowIndex: '1227431300776277893',
  489.     totalBorrows: '1526286509122427'
  490.   },
  491.   undefined,
  492.   Result {
  493.     '0': '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  494.     '1': '1000000000',
  495.     '2': '4445344282839',
  496.     __length__: 3,
  497.     minter: '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  498.     mintAmount: '1000000000',
  499.     mintTokens: '4445344282839'
  500.   }
  501. ]
  502. Action: CToken cUSDC: CUSDCHolder (0xBE0e...) mints 1e+9
  503. Command: From CUSDCHolder (Comptroller EnterMarkets (cUSDC))
  504. EMITTED EVENTS:    [
  505.   Result {
  506.     '0': '0x39AA39c021dfbaE8faC545936693aC917d5E7563',
  507.     '1': '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  508.     __length__: 2,
  509.     cToken: '0x39AA39c021dfbaE8faC545936693aC917d5E7563',
  510.     account: '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8'
  511.   }
  512. ]
  513. Action: Called enter assets 0x39AA39c021dfbaE8faC545936693aC917d5E7563 as CUSDCHolder (0xBE0e...)
  514. Command: Expect Changes (Erc20 FRAX TokenBalance CUSDCHolder) +1e18
  515. Command: Expect Changes (Erc20 FRAX TokenBalance cFRAX) -1e18
  516. Command: From CUSDCHolder (CToken cFRAX Borrow 1e18)
  517. EMITTED EVENTS:    [
  518.   Result {
  519.     '0': '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  520.     '1': '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  521.     __length__: 2,
  522.     cToken: '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  523.     account: '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8'
  524.   },
  525.   Result {
  526.     '0': '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  527.     '1': '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  528.     '2': '0',
  529.     '3': '1000000000000000000000000000000000000',
  530.     __length__: 4,
  531.     cToken: '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  532.     borrower: '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  533.     compDelta: '0',
  534.     compBorrowIndex: '1000000000000000000000000000000000000'
  535.   },
  536.   Result {
  537.     '0': '10000000000000000000',
  538.     '1': '0',
  539.     '2': '1000000000000000000',
  540.     '3': '0',
  541.     __length__: 4,
  542.     cashPrior: '10000000000000000000',
  543.     interestAccumulated: '0',
  544.     borrowIndex: '1000000000000000000',
  545.     totalBorrows: '0'
  546.   },
  547.   Result {
  548.     '0': '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  549.     '1': '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  550.     '2': '1000000000000000000',
  551.     __length__: 3,
  552.     from: '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  553.     to: '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  554.     amount: '1000000000000000000'
  555.   },
  556.   Result {
  557.     '0': '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  558.     '1': '1000000000000000000',
  559.     '2': '1000000000000000000',
  560.     '3': '1000000000000000000',
  561.     __length__: 4,
  562.     borrower: '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  563.     borrowAmount: '1000000000000000000',
  564.     accountBorrows: '1000000000000000000',
  565.     totalBorrows: '1000000000000000000'
  566.   }
  567. ]
  568. Action: CToken cFRAX: CUSDCHolder (0xBE0e...) borrows 1e+18
  569. Command: From CUSDCHolder (Erc20 FRAX Approve (Address cFRAX) 1e18)
  570. EMITTED EVENTS:    [
  571.   Result {
  572.     '0': '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  573.     '1': '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  574.     '2': '1000000000000000000',
  575.     __length__: 3,
  576.     owner: '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  577.     spender: '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  578.     amount: '1000000000000000000'
  579.   }
  580. ]
  581. Action: Approved FRAX ERC-20 token for 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8 of 1e+18
  582. Command: Expect Changes (Erc20 FRAX TokenBalance CUSDCHolder) -1e18
  583. Command: Expect Changes (Erc20 FRAX TokenBalance cFRAX) +1e18
  584. Command: From CUSDCHolder (CToken cFRAX RepayBorrow 1e18)
  585. EMITTED EVENTS:    [
  586.   Result {
  587.     '0': '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  588.     '1': '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  589.     '2': '0',
  590.     '3': '1000000000000000000000000000000000000',
  591.     __length__: 4,
  592.     cToken: '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  593.     borrower: '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  594.     compDelta: '0',
  595.     compBorrowIndex: '1000000000000000000000000000000000000'
  596.   },
  597.   Result {
  598.     '0': '9000000000000000000',
  599.     '1': '4756468796',
  600.     '2': '1000000004756468796',
  601.     '3': '1000000004756468796',
  602.     __length__: 4,
  603.     cashPrior: '9000000000000000000',
  604.     interestAccumulated: '4756468796',
  605.     borrowIndex: '1000000004756468796',
  606.     totalBorrows: '1000000004756468796'
  607.   },
  608.   Result {
  609.     '0': '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  610.     '1': '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  611.     '2': '1000000000000000000',
  612.     __length__: 3,
  613.     from: '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  614.     to: '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  615.     amount: '1000000000000000000'
  616.   },
  617.   Result {
  618.     '0': '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  619.     '1': '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  620.     '2': '0',
  621.     __length__: 3,
  622.     owner: '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  623.     spender: '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  624.     amount: '0'
  625.   },
  626.   Result {
  627.     '0': '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  628.     '1': '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  629.     '2': '1000000000000000000',
  630.     '3': '4756468796',
  631.     '4': '4756468796',
  632.     __length__: 5,
  633.     payer: '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  634.     borrower: '0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8',
  635.     repayAmount: '1000000000000000000',
  636.     accountBorrows: '4756468796',
  637.     totalBorrows: '4756468796'
  638.   }
  639. ]
  640. Action: CToken cFRAX: CUSDCHolder (0xBE0e...) repays 1e+18 of borrow
  641. Command: From TokenHolder (CToken cFRAX Redeem 50e8)
  642. EMITTED EVENTS:    [
  643.   Result {
  644.     '0': '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  645.     '1': '0xC564EE9f21Ed8A2d8E7e76c085740d5e4c5FaFbE',
  646.     '2': '0',
  647.     '3': '1000000000000000000000000000000000000',
  648.     __length__: 4,
  649.     cToken: '0xe7373A0D692F60400AF4A5ac6dfB927840414F86',
  650.     supplier: '0xC564EE9f21Ed8A2d8E7e76c085740d5e4c5FaFbE',
  651.     compDelta: '0',
  652.     compSupplyIndex: '1000000000000000000000000000000000000'
  653.   },
  654.   Result {
  655.     '0': '10000000000000000000',
  656.     '1': '0',
  657.     '2': '1000000004756468807',
  658.     '3': '4756468796',
  659.     __length__: 4,
  660.     cashPrior: '10000000000000000000',
  661.     interestAccumulated: '0',
  662.     borrowIndex: '1000000004756468807',
  663.     totalBorrows: '4756468796'
  664.   },
  665.   undefined,
  666.   Result {
  667.     '0': '0xC564EE9f21Ed8A2d8E7e76c085740d5e4c5FaFbE',
  668.     '1': '1000000000356735159',
  669.     '2': '5000000000',
  670.     __length__: 3,
  671.     redeemer: '0xC564EE9f21Ed8A2d8E7e76c085740d5e4c5FaFbE',
  672.     redeemAmount: '1000000000356735159',
  673.     redeemTokens: '5000000000'
  674.   }
  675. ]
  676. Action: CToken cFRAX: TokenHolder (0xC564...) redeems 5e+9 tokens
  677. Command: Print "Integration ok"
  678. Integration ok
  679.  
  680.  
  681.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement