mirror of
https://github.com/logos-storage/logos-storage-contracts-eth.git
synced 2026-01-10 01:03:12 +00:00
13 lines
304 B
Solidity
13 lines
304 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity 0.8.28;
|
|
|
|
import "./Timestamps.sol";
|
|
|
|
type TokensPerSecond is int256;
|
|
|
|
using {_negate as -} for TokensPerSecond global;
|
|
|
|
function _negate(TokensPerSecond rate) pure returns (TokensPerSecond) {
|
|
return TokensPerSecond.wrap(-TokensPerSecond.unwrap(rate));
|
|
}
|