Testnet & Mainnet
Last updated
Last updated
Megapot runs multiple testing contracts for you to build on and test with. We have a testnet contract and a mainnet contract that is different than our main contract. This allows you to easily test your implementations before deploying code.
We offer both a test contract on testnet and mainnet which you are free to use when testing. The only difference between them, aside from the network, is the testnet contract uses a mock USDC token (MPUSDC) which you can freely mint for testing purposes.
Our Mainnet testnet contract allows you to test in a more realistic environment before deploying to mainnet. It does use real USDC, has a small amount of liquidity, and can be used for testing liquidity addition, edits, withdrawals, etc. Along with real USDC ticket purchases. This contract does not run automatically, but you are able to manually run the jackpot for testing purposes.
Rapidly develop on testnet. This contract allows you to test your app features without real costs. You can mint the test token (MPUSDC) as often as you need.
Entropy Contract: 0x41c9e39574F40Ad34c79f1C99B66A45eFB830d4c
Token Address: (MPUSDC)
Ticket Price: 1_000_000
1 MPUSDC
Minimum LP Deposit: 100_000_000
100 MPUSDC
Lottery Fee: 1500
15%
Referral Fee: 1000
10%
Round Duration: 10
minutes
This is a test contract we have running on mainnet. This is useful for testing your application against a mainnet environment, without having to wait 1 day for results. With this contract you can test and run jackpots every 10 minutes.
Entropy Contract: 0x6E7D74FA7d5c90FEF9F0512987605a6d546181Bb
Ticket Price: 1_000_000
1 USDC
Minimum LP Deposit: 1_000_000
1 USDC
Lottery Fee: 3000
30%
Referral Fee: 1000
10%
Round Duration: 10
minutes
This is our mainnet jackpot, the live megapot.io jackpot. Your application should utilize only this contract when live in production.
Entropy Contract: 0x6E7D74FA7d5c90FEF9F0512987605a6d546181Bb
Ticket Price: 1_000_000
1 USDC
Lottery Fee: 3000
30%
Referral Fee: 1000
10%
Round Duration: 1
day
To run the jackpot manually, you can call the runJackpot function on the jackpot contract.
payableAmount
Fee paid to the entropy contract to generate the random number for determining the winner.
Note: You can get the current value of the fee by calling the getJackpotFee
function on the jackpot contract and convert to ETH units.
Mainnet: 0.000005000000000001
Testnet: 0.000015000000000001
userRandomNumber
Enter any 32 byte value.
Example: 0x55fb29339a98ca25bedb7b5aa225041f669ca1407e926a95ce4a9b080ac66907
Note: reusing this is fine, Pyth generates randomness, this seed further maximizes randomness
You can generate your own with Web3.utils.randomHex(32)
or openssl rand -hex 32
. Prefix with 0x
Our Base Sepolia testnet contract uses a mock USDC token for testing purposes. You can mint MPUSDC to your wallet by calling the function on the MPUSDC contract.
Be sure to approve the testnet contract to spend your MPUSDC on the contract. You can access the function and set the spender
to the testnet jackpot contract address above.
Token Address: (USDC)
Token Address: (USDC)
Refer to our page for more information on the contracts and their functions.
Ready to build?