From 6d87558e0604206f5b160a0fdbbaca1d306c1940 Mon Sep 17 00:00:00 2001 From: Sammy Liu Date: Sat, 6 Aug 2022 00:55:09 +0800 Subject: [PATCH 1/2] add doc for function allTokensFrozen --- contracts/AxelarGateway.sol | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contracts/AxelarGateway.sol b/contracts/AxelarGateway.sol index 0b2d9776..d7166b24 100644 --- a/contracts/AxelarGateway.sol +++ b/contracts/AxelarGateway.sol @@ -157,6 +157,10 @@ contract AxelarGateway is IAxelarGateway, AdminMultisigBase { return getUint(_getTokenDailyMintAmountKey(symbol, block.timestamp / 1 days)); } + /* + * @dev the function is kept around to keep things work for tokens that were + * deployed before the token freeze functionality was removed + */ function allTokensFrozen() external pure override returns (bool) { return false; } From f0c4842bb23e4a3af47be5d5a6a72452c7ae8717 Mon Sep 17 00:00:00 2001 From: Sammy Liu Date: Sat, 6 Aug 2022 01:18:27 +0800 Subject: [PATCH 2/2] add more docs --- contracts/AxelarGateway.sol | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/contracts/AxelarGateway.sol b/contracts/AxelarGateway.sol index d7166b24..0735b771 100644 --- a/contracts/AxelarGateway.sol +++ b/contracts/AxelarGateway.sol @@ -158,8 +158,9 @@ contract AxelarGateway is IAxelarGateway, AdminMultisigBase { } /* - * @dev the function is kept around to keep things work for tokens that were - * deployed before the token freeze functionality was removed + * @dev This function is kept around to keep things working for internal + * tokens that were deployed before the token freeze functionality was + * removed */ function allTokensFrozen() external pure override returns (bool) { return false; @@ -173,6 +174,11 @@ contract AxelarGateway is IAxelarGateway, AdminMultisigBase { return getAddress(_getTokenAddressKey(symbol)); } + /* + * @dev This function is kept around to keep things working for internal + * tokens that were deployed before the token freeze functionality was + * removed + */ function tokenFrozen(string memory) external pure override returns (bool) { return false; }