Skip to content

Commit

Permalink
Uploaded for gist so that we can verify the test deployment on baseca…
Browse files Browse the repository at this point in the history
…n.org
  • Loading branch information
broken-byte committed Jun 20, 2024
1 parent f021c94 commit 7a1c89a
Show file tree
Hide file tree
Showing 14 changed files with 56,017 additions and 1,012 deletions.
17 changes: 17 additions & 0 deletions contracts/BasedWhale.sol
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,23 @@ contract BasedWhale is ERC20Capped, Ownable {
tokenState = TokenState.LiquidityLocked;
}

function mintRemainingSupplyForManualLiquidityProvisioning()
external
onlyOwner
inState(TokenState.Launched)
{
uint256 remainingSupply = cap() - totalSupply(); // 85%
_mint(msg.sender, remainingSupply);
}

function moveStateToLiquidityLocked(
address _uniswapV2PairAddress
) external onlyOwner inState(TokenState.Launched) {
uniswapV2PairAddress = _uniswapV2PairAddress;

tokenState = TokenState.LiquidityLocked;
}

function setTaxRatesToZero() external onlyOwner inState(TokenState.LiquidityLocked) {
buyTaxRate = 0;
sellTaxRate = 0;
Expand Down
8 changes: 7 additions & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "./tasks/LockBasedWhaleLiquidity";

const ALCHEMY_BASE_MAINNET_API_KEY: string = process.env.ALCHEMY_API_KEY!!;
const BASE_ENGINEERING_DEPLOYER_PRIVATE_KEY: string = process.env.BASE_ENGINEERING_DEPLOYER_PRIVATE_KEY!!;
Expand All @@ -15,11 +16,16 @@ const config: HardhatUserConfig = {
blockNumber: 15972484
},
},
// Base Sepolia
// Base Sepolia (testnet)
sepolia: {
url: `https://base-sepolia.g.alchemy.com/v2/${ALCHEMY_BASE_SEPLOYIA_API_KEY}`,
accounts: [BASE_ENGINEERING_DEPLOYER_PRIVATE_KEY],
},
// Base Mainnet
base: {
url: `https://base-mainnet.g.alchemy.com/v2/${ALCHEMY_BASE_MAINNET_API_KEY}`,
accounts: [BASE_ENGINEERING_DEPLOYER_PRIVATE_KEY],
}
},
etherscan: {
apiKey: BASESCAN_BASED_WHALE_API_KEY,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../build-info/e24aab3279287a46f972e6bc22b42dad.json"
}
Loading

0 comments on commit 7a1c89a

Please sign in to comment.