Skip to content

Commit

Permalink
New Sepolia deployment, change min due date
Browse files Browse the repository at this point in the history
  • Loading branch information
pclaesen committed Sep 27, 2024
1 parent b3a0277 commit 6b92366
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cache/solidity-files-cache.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/Paytr.sol/IComet.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/Paytr.sol/IERC20FeeProxy.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/Paytr.sol/IWrapper.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/Paytr.sol/Paytr.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion out/build-info/034518b1a0d0db907737f572555bacf0.json

This file was deleted.

1 change: 1 addition & 0 deletions out/build-info/3f602d1c6903cd3be1e4cdf7595dd447.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"id":"3f602d1c6903cd3be1e4cdf7595dd447","source_id_to_path":{"0":"lib/openzeppelin-contracts/contracts/access/Ownable.sol","1":"lib/openzeppelin-contracts/contracts/security/Pausable.sol","2":"lib/openzeppelin-contracts/contracts/security/ReentrancyGuard.sol","3":"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol","4":"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Permit.sol","5":"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol","6":"lib/openzeppelin-contracts/contracts/utils/Address.sol","7":"lib/openzeppelin-contracts/contracts/utils/Context.sol","8":"src/Paytr.sol"},"language":"Solidity"}
2 changes: 1 addition & 1 deletion src/Paytr.sol
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ contract Paytr is Ownable, Pausable, ReentrancyGuard {

function setContractParameters(uint16 _contractFeeModifier, uint256 _minDueDateParameter, uint256 _maxDueDateParameter, uint256 _minTotalAmountParameter, uint8 _maxPayoutArraySize) public onlyOwner {
if(_contractFeeModifier < 5000 || _contractFeeModifier > 10000 ) revert InvalidContractFeeModifier();
if(_minDueDateParameter < 5 days) revert InvalidMinDueDate();
if(_minDueDateParameter < 2 days) revert InvalidMinDueDate();
if(_maxDueDateParameter > 365 days) revert InvalidMaxDueDate();
if(_minTotalAmountParameter < 1) revert InvalidMinAmount();
if(_maxPayoutArraySize == 0) revert InvalidMaxArraySize();
Expand Down

0 comments on commit 6b92366

Please sign in to comment.