The VRF Balancer is a configutable smartcontract that allows you to automatically top-up your VRF balance using Chainlink Automation.
- Install any wallet to your browser (Metamask, etc.)
git clone [email protected]:linkpoolio/vrf-balance-chainlink-automation.git
# from /root
echo "NETWORK=hardhat" >> .env
echo "RPC_URL=\"http://127.0.0.1:7545\"" >> .env
# from /root
npm install
# from /root
make deploy
# from /root/ui
npm storybook
- Open browser at localhost:9009
# from root
make test-contracts
# from root
make coverage
make deploy
Example Constructor Arguments (See network.config.ts
for more networks)
name: "binance-mainnet",
linkTokenERC677: "0x404460C6A5EdE2D891e8297795264fDe62ADBB75",
linkTokenERC20: "0xF8A0BF9cF54Bb92F17374d9e9A321E6a111a51bD",
vrfCoordinatorV2: "0xc587d9053cd1118f25F645F9E08BB98c9712A4EE",
keepersRegistry: "0x02777053d6764996e594c3E88AF1D58D5363a2e6",
minWaitPeriodSeconds: 86400, // 1 day
dexAddress: "0x10ED43C718714eb63d5aA57B78B54704E256024E", // PancakeSwap Router
erc20AssetAddress: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c", // WBNB
pegswapAddress: "0x1FCc3B22955e76Ca48bF025f1A6993685975Bb9e",