Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Require minimum signer fee of 5bps
Browse files Browse the repository at this point in the history
This to avoid the ability to disable the system by simply zeroing out
the signer fee through governance.
  • Loading branch information
Shadowfiend committed Apr 18, 2020
1 parent 2121b0f commit b896773
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions solidity/contracts/system/TBTCSystem.sol
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ contract TBTCSystem is Ownable, ITBTCSystem, DepositLog {
external onlyOwner
{
require(_signerFeeDivisor > 9, "Signer fee divisor must be greater than 9, for a signer fee that is <= 10%.");
require(_signerFeeDivisor < 2000, "Signer fee divisor must be less than 2000, for a signer fee that is > 5bps.");

newSignerFeeDivisor = _signerFeeDivisor;
signerFeeDivisorChangeInitiated = block.timestamp;
emit SignerFeeDivisorUpdateStarted(_signerFeeDivisor, block.timestamp);
Expand Down

0 comments on commit b896773

Please sign in to comment.