GoodDollar / GoodContracts

GoodDollar's solidity contracts - Token + DAP based on DAOStack
MIT License
33 stars 23 forks source link

Simulated 1st scenario test case same as mentioned in excel #199

Closed PremSOMISH closed 4 years ago

PremSOMISH commented 4 years ago

Description

Interest library scenarios based test case. This PR includes Scenario based test cases for staking and interest mechanism.

About #198

How Has This Been Tested?

Testing scenarios framed in excel sheet and simulated with same scenario in truffle after approval.

sirpy commented 4 years ago

we have a requirement that globalGDYieldPerToken is updated before the first call in the block (globalGDYieldPerTokenUpdatedBlock) And I dont see any calls to update it

  1. how can results be correct if we dont update it every block
  2. how does the test pass without it reverting? tests do not change the block number?