Skip to content

Instantly share code, notes, and snippets.

@yuyasugano
Created April 13, 2021 00:07
Show Gist options
  • Save yuyasugano/e9440e497fbe3a8c641859736f3669d6 to your computer and use it in GitHub Desktop.
Save yuyasugano/e9440e497fbe3a8c641859736f3669d6 to your computer and use it in GitHub Desktop.
HashMaskFlash constructor
INCT public constant NCT = INCT(0x8A9c4dfe8b9D8962B31e4e16F8321C44d48e246E);
IERC721 public constant HASHMASK =
IERC721(0xC2C747E0F7004F9E8817Db2ca4997657a7746928);
INFT20Pair public constant MASK20 =
INFT20Pair(0xc2BdE1A2fA26890c8E6AcB10C91CC6D9c11F4a73);
IUniswapV2Router public constant ROUTER_V2 =
IUniswapV2Router(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
constructor() public {
// approve all deeds to MASK20 NFT pair contract
HASHMASK.setApprovalForAll(address(MASK20), true);
// approve NCT tokens to UniswapV2 router contract
NCT.approve(address(ROUTER_V2), uint256(-1));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment