Commit Graph

16 Commits (17920cd4ca14ff54e4d085d6ee46635e0320411d)

Author SHA1 Message Date
vzotova 1819d5a552 Solidity -> 0.7.0 2020-08-06 13:39:17 +03:00
vzotova 091ca97e7d Fix bug in `StakingEscrow.mergeStake()` when using same index twice 2020-07-30 12:55:37 +03:00
David Núñez b667a808b0 Test Issuer initialization with an owner different than the creator 2020-07-21 22:15:43 +02:00
David Núñez e83a815e47 Improve TokenAgent's API and usage of approve_transfer and increase_allowance 2020-07-21 22:15:43 +02:00
David Núñez d1acf35002 Allow StakingEscrow initialization from a separate funding source
This is necessary to allow the DAO agent to activate the contract without necessarily giving tokens to the agent
2020-07-21 22:15:43 +02:00
David Núñez 56fd7394db Test that stakers can have positive balance before StakingEscrow initialization 2020-07-21 22:15:43 +02:00
Kieran R. Prasch 388ea2fc55 master -> main 2020-07-21 08:48:52 -07:00
vzotova e90a27c8c3 StakingEscrow: new method to merge two sub-stakes into one 2020-06-23 11:15:02 +03:00
vzotova a55f462902 StakingEscrow: add way to stake tokens to already existing sub-stake, including < minimum allowed 2020-06-23 11:15:02 +03:00
vzotova 3caa46f367 StakingEscrow: removed messages from require and removed one deposit function to decrease contract size 2020-06-23 11:15:01 +03:00
vzotova 54297be311 StakingEscrow: extract getLockedTokensInPast method to test set 2020-06-23 11:15:01 +03:00
vzotova 0c9d4bc9e3 StakingEscrow: unbond worker when withdrawing last portion of NU 2020-06-23 11:15:01 +03:00
vzotova 8f19161920 StakingEscrow: now staker is not only who has tokens but also who has not-rewarded periods 2020-06-23 11:15:00 +03:00
vzotova 4335664aca SPDX license identifier in contracts 2020-06-08 15:52:54 +03:00
vzotova 790e22685c Adds `receive()` function to contracts instead of payable `fallback()` 2020-06-05 17:21:05 +03:00
Kieran Prasch 28cce2fccc Reorganize tests into multiple suites. 2020-05-27 14:11:25 -07:00