Skip to content

Commit

Permalink
get&set
Browse files Browse the repository at this point in the history
  • Loading branch information
evelinemolnar committed Sep 16, 2024
1 parent 3e5d85f commit 9de28c9
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions contracts/ERC20Safe.sol
Original file line number Diff line number Diff line change
Expand Up @@ -443,13 +443,21 @@ contract ERC20Safe is Initializable, BridgeRole, Pausable {
}
}

// function getThreshold(address tokenAddress) public view returns (uint256) {
// return threshold[tokenAddress];
// }
function getThreshold(address tokenAddress) public view returns (uint256) {
return aggregateValueThreshold[tokenAddress];
}

function setThreshold(address token, uint256 amount) external onlyAdmin {
aggregateValueThreshold[token] = amount;
}

// function setThreshold(address token, uint256 amount) external onlyAdmin {
// threshold[token] = amount;
// }
function getSingleTxThreshold(address tokenAddress) public view returns (uint256) {
return singleTransactionThreshold[tokenAddress];
}

function setSingleTxThreshold(address token, uint256 amount) external onlyAdmin {
singleTransactionThreshold[token] = amount;
}

function processDelayedTransactionImmediately(uint256 index) external onlyAdmin {
require(index < delayedTransactions.length, "Invalid index");
Expand Down

0 comments on commit 9de28c9

Please sign in to comment.