File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -201,18 +201,15 @@ contract CloversController is HasNoEther, HasNoTokens {
201
201
uint256 fastGasPrice = _fastGasPrice << 128 ;
202
202
uint256 averageGasPrice = _averageGasPrice << 64 ;
203
203
uint256 safeLowGasPrice = _safeLowGasPrice;
204
- gasLastUpdated_fastGasPrice_averageGasPrice_safeLowGasPrice = gasLastUpdated & fastGasPrice & averageGasPrice & safeLowGasPrice;
204
+ gasLastUpdated_fastGasPrice_averageGasPrice_safeLowGasPrice = gasLastUpdated | fastGasPrice | averageGasPrice | safeLowGasPrice;
205
205
}
206
206
207
207
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 ));
211
210
}
212
211
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 ));
216
213
}
217
214
function averageGasPrice () public view returns (uint256 ) {
218
215
return uint256 (uint64 (gasLastUpdated_fastGasPrice_averageGasPrice_safeLowGasPrice >> 64 ));
You can’t perform that action at this time.
0 commit comments