GoodDollar / GoodContracts

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

Interest library test scenarios #198

Closed sirpy closed 2 years ago

sirpy commented 4 years ago

A test scenario needs to simulate actions by multiple stakers by calling the following methods in different orders and different inputs:

The following free variables are simulated in the scenario

notice that updateGlobalGDYieldPerToken must be called before every "simulated" block in these scenarios we will assume that each staker action happens on a separate block