diff --git a/contracts/helpers/MockBancorNetworkV3.sol b/contracts/helpers/MockBancorNetworkV3.sol index f4fafcd6..6e3474dd 100755 --- a/contracts/helpers/MockBancorNetworkV3.sol +++ b/contracts/helpers/MockBancorNetworkV3.sol @@ -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"; diff --git a/contracts/helpers/TestBNT.sol b/contracts/helpers/TestBNT.sol index 8722b981..14172ff6 100644 --- a/contracts/helpers/TestBNT.sol +++ b/contracts/helpers/TestBNT.sol @@ -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"; diff --git a/contracts/helpers/TestReenterCarbonPOL.sol b/contracts/helpers/TestReenterCarbonPOL.sol index 3738d87c..195036ee 100644 --- a/contracts/helpers/TestReenterCarbonPOL.sol +++ b/contracts/helpers/TestReenterCarbonPOL.sol @@ -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"; diff --git a/contracts/helpers/TestReenterCarbonVortex.sol b/contracts/helpers/TestReenterCarbonVortex.sol index 500e5218..bf753870 100644 --- a/contracts/helpers/TestReenterCarbonVortex.sol +++ b/contracts/helpers/TestReenterCarbonVortex.sol @@ -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"; diff --git a/contracts/helpers/TestReentrantToken.sol b/contracts/helpers/TestReentrantToken.sol index b8665c41..86210ee3 100644 --- a/contracts/helpers/TestReentrantToken.sol +++ b/contracts/helpers/TestReentrantToken.sol @@ -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"; @@ -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)) {