Skip to content

Commit

Permalink
fix license
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanzhelyazkov committed Oct 11, 2023
1 parent aea71f6 commit 792bc3e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion contracts/helpers/MockBancorNetworkV3.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: SEE LICENSE IN LICENSE
pragma solidity 0.8.19;

import { Token } from "../token/Token.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/helpers/TestBNT.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: SEE LICENSE IN LICENSE
pragma solidity 0.8.19;

import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/helpers/TestReenterCarbonPOL.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: SEE LICENSE IN LICENSE
pragma solidity 0.8.19;

import { ICarbonPOL } from "../pol/interfaces/ICarbonPOL.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/helpers/TestReenterCarbonVortex.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: SEE LICENSE IN LICENSE
pragma solidity 0.8.19;

import { ICarbonVortex } from "../vortex/interfaces/ICarbonVortex.sol";
Expand Down
3 changes: 2 additions & 1 deletion contracts/helpers/TestReentrantToken.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: SEE LICENSE IN LICENSE
pragma solidity 0.8.19;

import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
Expand Down Expand Up @@ -42,6 +42,7 @@ contract TestReentrantToken is ERC20 {
function transferFrom(address from, address to, uint256 amount) public override(ERC20) returns (bool) {
bool success = super.transferFrom(from, to, amount);

// choose which carbonController function to reenter based on _reenterFunctionIndex
if (_reenterFunctionIndex == uint8(ReenterFunctions.CREATE_PAIR)) {
_reenterCreatePair();
} else if (_reenterFunctionIndex == uint8(ReenterFunctions.CREATE_STRATEGY)) {
Expand Down

0 comments on commit 792bc3e

Please sign in to comment.