This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//SPDX-License-Identifier: MIT | |
import "forge-std/Test.sol"; | |
import "../src/interfaces/IManagedPoolFactory.sol"; | |
import "lib/balancer-v2-monorepo/pkg/interfaces/contracts/vault/IVault.sol"; | |
interface IPool { | |
function getPoolId() external returns (bytes32); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function test_EXACT_TOKENS_IN_FOR_BPT_OUT() public { | |
TokenData[] memory tokenDataArray = new TokenData[](4); | |
tokenDataArray[0] = TokenData({ | |
token: 0x6B175474E89094C44Da98b954EedeAC495271d0F, //dai | |
rateProvider: address(0), | |
tokenRateCacheDuration: 21600, | |
amount: 100e18 | |
}); | |
tokenDataArray[1] = TokenData({ | |
token: 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, //usdc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.4; | |
import "./Vault_3.sol"; | |
contract Attacker { | |
//Vault public vault | |
Vault public vault; |