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
// File: @openzeppelin/contracts@4.8.0/utils/Context.sol | |
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol) | |
pragma solidity ^0.8.0; | |
/** | |
* @dev Provides information about the current execution context, including the |
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.9; | |
import "@openzeppelin/contracts@4.8.0/token/ERC20/ERC20.sol"; | |
import "@openzeppelin/contracts@4.8.0/security/Pausable.sol"; | |
import "@openzeppelin/contracts@4.8.0/access/Ownable.sol"; | |
contract CUBETest is ERC20, Pausable, Ownable { | |
constructor() ERC20("CUBE Test", "CUBE") { | |
_mint(msg.sender, 10000000 * 10 ** decimals()); |
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: GPL-3.0-or-later | |
pragma solidity >=0.6.0; | |
// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false | |
library TransferHelper { | |
function safeApprove( | |
address token, | |
address to, | |
uint256 value |
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: GPL-3.0-or-later | |
pragma solidity >=0.6.0; | |
// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false | |
library TransferHelper { | |
function safeApprove( | |
address token, | |
address to, | |
uint256 value |
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 | |
// File: @openzeppelin/contracts/interfaces/IERC3156FlashBorrower.sol | |
// OpenZeppelin Contracts (last updated v4.7.0) (interfaces/IERC3156FlashBorrower.sol) | |
pragma solidity ^0.8.0; | |
/** | |
* @dev Interface of the ERC3156 FlashBorrower, as defined in |
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
// File: @openzeppelin/contracts/interfaces/IERC3156FlashBorrower.sol | |
// OpenZeppelin Contracts (last updated v4.7.0) (interfaces/IERC3156FlashBorrower.sol) | |
pragma solidity ^0.8.0; | |
/** | |
* @dev Interface of the ERC3156 FlashBorrower, as defined in |
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 | |
// File: interfaces/IWETH.sol | |
pragma solidity >=0.5.0; | |
interface IWETH { | |
function deposit() external payable; | |
function transfer(address to, uint256 value) external returns (bool); |
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 | |
// File: interfaces/IWETH.sol | |
pragma solidity >=0.5.0; | |
interface IWETH { | |
function deposit() external payable; | |
function transfer(address to, uint256 value) external returns (bool); |
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
// File: interfaces/IMindchainswapCallee.sol | |
pragma solidity >=0.5.0; | |
interface IMindchainswapCallee { | |
function mindCall( | |
address sender, | |
uint256 amount0, |
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
// File: interfaces/IMindchainswapCallee.sol | |
pragma solidity >=0.5.0; | |
interface IMindchainswapCallee { | |
function mindCall( | |
address sender, | |
uint256 amount0, |
NewerOlder