Skip to content

Commit

Permalink
fix: pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Debugger022 committed Feb 12, 2024
1 parent bb6a212 commit c6c1d16
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions contracts/Comptroller.sol
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,11 @@ contract Comptroller is
* @param delegate The address to update the rights for
* @param allowBorrows Whether to grant (true) or revoke (false) the rights
* @custom:event DelegateUpdated emits on success
* @custom:error ZeroAddressNotAllowed is thrown when delegate address is zero
* @custom:access Not restricted
*/
function updateDelegate(address delegate, bool allowBorrows) external {
ensureNonzeroAddress(delegate);
approvedDelegates[msg.sender][delegate] = allowBorrows;
emit DelegateUpdated(msg.sender, delegate, allowBorrows);
}
Expand Down
2 changes: 1 addition & 1 deletion contracts/Gateway/INativeTokenGateway.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity 0.8.20;

import { IVToken } from "./Interfaces/IVtoken.sol";
import { IVToken } from "./Interfaces/IVToken.sol";

/**
* @title INativeTokenGateway
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.13;
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity 0.8.20;

interface IVToken {
function mintBehalf(address receiver, uint256 mintAmount) external returns (uint256);
Expand Down
4 changes: 2 additions & 2 deletions contracts/Gateway/NativeTokenGateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ contract NativeTokenGateway is INativeTokenGateway, Ownable2Step, ReentrancyGuar
/**
* @notice Sweeps native assets (Native) from the contract and sends them to the owner
* @custom:event SweepNative is emitted when assets are swept from the contract
* @custom:access Controller by Governance
* @custom:access Controlled by Governance
*/
function sweepNative() external payable onlyOwner {
uint256 balance = address(this).balance;
Expand All @@ -155,7 +155,7 @@ contract NativeTokenGateway is INativeTokenGateway, Ownable2Step, ReentrancyGuar
/**
* @notice Sweeps wrappedNativeToken tokens from the contract and sends them to the owner
* @custom:event SweepToken emits on success
* @custom:access Controller by Governance
* @custom:access Controlled by Governance
*/
function sweepToken() external onlyOwner {
uint256 balance = wrappedNativeToken.balanceOf(address(this));
Expand Down

0 comments on commit c6c1d16

Please sign in to comment.