Advertisement
Guest User

cFRAX Simulation

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