UbiquiBot Payments Setup

<aside> 💡 Make sure to set up your bot for automated payments!

</aside>

Bot Wallet Setup

  1. Generate a new private key. You can go to your MetaMask and create a new wallet.
    1. Any private key generation method is acceptable as long as you can access the private key.
  2. Export the private key.

Allow Permit2 Spender

  1. Deposit 0.000046098 ETH per GWEI (e.g. 0.0023049 ETH for 50 GWEI) to your newly generated wallet address.
  2. Go to your payment token’s writeContract interface on Etherscan.
    1. DAI stablecoin writeContract interface https://etherscan.io/address/0x6b175474e89094c44da98b954eedeac495271d0f#writeContract
  3. Approve Permit2 as your spender 0x000000000022D473030F116dDEE9F6B43aC78BA3 with an intentional amount. For security reasons it is best to not go higher than you can afford to lose. The integer you enter should append 18 zeros after.
    1. For example 10000 DAI should be input as 10000000000000000000000
    2. Reference transaction with 1 DAI approval https://etherscan.io/tx/0xaceeafd1c03c1347f7307b22b2fe89145d3e4a24fdf57abd3c4978a9b4cb2181

Generate Github Personal Access Token (classic)

  1. Open https://github.com/settings/tokens
  2. Click on Generate new token (classic)
  3. Select scopes repo and admin:org
  4. Click on Generate token and save the token (we will use it later)

Generate Bot Config

  1. Open https://pay.ubq.fi/onboarding
  2. Set WALLET_PRIVATE_KEY field with your wallet’s private key
  3. Set GITHUB_PAT field with your github personal access token
  4. Set ORG_NAME field with your organization name