Skip to content

Commit d2cfa82

Browse files
committed
pause
1 parent 7dd095d commit d2cfa82

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

contracts/CloversController.sol

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -201,18 +201,15 @@ contract CloversController is HasNoEther, HasNoTokens {
201201
uint256 fastGasPrice = _fastGasPrice << 128;
202202
uint256 averageGasPrice = _averageGasPrice << 64;
203203
uint256 safeLowGasPrice = _safeLowGasPrice;
204-
gasLastUpdated_fastGasPrice_averageGasPrice_safeLowGasPrice = gasLastUpdated & fastGasPrice & averageGasPrice & safeLowGasPrice;
204+
gasLastUpdated_fastGasPrice_averageGasPrice_safeLowGasPrice = gasLastUpdated | fastGasPrice | averageGasPrice | safeLowGasPrice;
205205
}
206206

207207
function gasLastUpdated() public view returns(uint256) {
208-
uint64 blocker = 0;
209-
blocker = blocker - 1;
210-
return uint256((gasLastUpdated_fastGasPrice_averageGasPrice_safeLowGasPrice >> 192) & blocker);
208+
209+
return uint256(uint64(gasLastUpdated_fastGasPrice_averageGasPrice_safeLowGasPrice >> 192));
211210
}
212211
function fastGasPrice() public view returns(uint256) {
213-
uint64 blocker = 0;
214-
blocker = blocker - 1;
215-
return uint256((gasLastUpdated_fastGasPrice_averageGasPrice_safeLowGasPrice >> 128) & blocker);
212+
return uint256(uint64(gasLastUpdated_fastGasPrice_averageGasPrice_safeLowGasPrice >> 128));
216213
}
217214
function averageGasPrice() public view returns(uint256) {
218215
return uint256(uint64(gasLastUpdated_fastGasPrice_averageGasPrice_safeLowGasPrice >> 64));

0 commit comments

Comments
 (0)