mirror of
https://github.com/tornadocash/tornado-nova
synced 2024-02-02 14:53:56 +01:00
lint
This commit is contained in:
parent
7fc3e37eb0
commit
0a515b06aa
@ -113,7 +113,7 @@ contract TornadoPool {
|
||||
}
|
||||
}
|
||||
|
||||
function calculatePublicAmount(int256 _extAmount, uint256 _fee) public pure returns(uint256) {
|
||||
function calculatePublicAmount(int256 _extAmount, uint256 _fee) public pure returns (uint256) {
|
||||
require(_fee < MAX_FEE, "Invalid fee");
|
||||
require(_extAmount > -MAX_EXT_AMOUNT && _extAmount < MAX_EXT_AMOUNT, "Invalid ext amount");
|
||||
int256 publicAmount = _extAmount - int256(_fee);
|
||||
|
Loading…
Reference in New Issue
Block a user