simplify code to reduce deploy gas cost

This commit is contained in:
mingda
2020-07-11 16:21:54 +08:00
parent d042c265c2
commit 739195b326
7 changed files with 17 additions and 32 deletions

View File

@@ -113,7 +113,7 @@ contract Settlement is Storage {
// claim remaining assets after final settlement
function claim() external preventReentrant {
require(_CLOSED_, "DODO_IS_NOT_CLOSED");
require(_CLOSED_, "DODO_NOT_CLOSED");
require(!_CLAIMED_[msg.sender], "ALREADY_CLAIMED");
_CLAIMED_[msg.sender] = true;
uint256 quoteAmount = DecimalMath.mul(