Skip to content

Commit

Permalink
Merge branch 'SMR-1677-FlowRate' of https://github.com/immutable/zkev…
Browse files Browse the repository at this point in the history
…m-bridge-contracts into SMR-1677-FlowRate
  • Loading branch information
proletesseract committed Nov 19, 2023
2 parents b90de74 + 9316428 commit e774fec
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/interfaces/root/flowrate/IFlowRateWithdrawalQueue.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ interface IFlowRateWithdrawalQueueEvents {
uint256 index
);

// Indicates that the new withdrawal delay.
// Indicates the new withdrawal delay.
event WithdrawalDelayUpdated(uint256 delay, uint256 previousDelay);
}

interface IFlowRateWithdrawalQueueErrors {
// // A withdrawal was being processed, but the index is outside of the array.
// A withdrawal was being processed, but the index is outside of the array.
error IndexOutsideWithdrawalQueue(uint256 lengthOfQueue, uint256 requestedIndex);

// A withdrawal was being processed, but the withdrawal is not yet available.
Expand Down
3 changes: 0 additions & 3 deletions src/root/RootERC20Bridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol
import {Clones} from "@openzeppelin/contracts/proxy/Clones.sol";
import {Address} from "@openzeppelin/contracts/utils/Address.sol";
import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";
// import {Ownable2Step} from "@openzeppelin/contracts/access/Ownable2Step.sol";
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import {AccessControlUpgradeable} from "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
import {IAxelarGateway} from "@axelar-cgp-solidity/contracts/interfaces/IAxelarGateway.sol";
Expand All @@ -30,8 +29,6 @@ import {BridgeRoles} from "../common/BridgeRoles.sol";
* @dev Note that there is undefined behaviour for bridging non-standard ERC20 tokens (e.g. rebasing tokens). Please approach such cases with great care.
*/
contract RootERC20Bridge is
AccessControlUpgradeable, // AccessControlUpgradeable inherits Initializable
PausableUpgradeable,
IRootERC20Bridge,
IRootERC20BridgeEvents,
IRootERC20BridgeErrors,
Expand Down
2 changes: 1 addition & 1 deletion src/root/flowrate/FlowRateDetection.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ abstract contract FlowRateDetection {
// Holds flow rate information for a single token.
struct Bucket {
// The number of tokens that can fit in the bucket.
// A capacity of zero indicates that flow rate detection is disabled for the token.
// A capacity of zero indicates that flow rate detection is not configured for the token.
uint256 capacity;
// The number of tokens in the bucket.
uint256 depth;
Expand Down
3 changes: 0 additions & 3 deletions test/unit/root/flowrate/RootERC20BridgeFlowRate.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ contract RootERC20BridgeFlowRateUnitTest is
address constant IMX_TOKEN = address(0xccc);
address constant NATIVE_ETH = address(0xeee);
address constant WRAPPED_ETH = address(0xddd);
uint256 constant mapTokenFee = 300;
uint256 constant depositFee = 200;
uint256 constant UNLIMITED_IMX_DEPOSITS = 0;

uint256 constant CAPACITY = 1000000;
Expand All @@ -95,7 +93,6 @@ contract RootERC20BridgeFlowRateUnitTest is
uint256 constant LARGE_ETH = 100000 ether;

uint256 constant CHARLIE_REMAINDER = 17;
uint256 constant CHARLIE_REMAINDER_ETH = 17 ether;
uint256 constant BANK_OF_CHARLIE_TREASURY = BRIDGED_VALUE + CHARLIE_REMAINDER;

uint256 constant BRIDGED_VALUE = CAPACITY * 100;
Expand Down

0 comments on commit e774fec

Please sign in to comment.