Testnet
Testnet Contract (Base Sepolia)
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. 0x6f03c7BCaDAdBf5E6F5900DA3d56AdD8FbDac5De- Entropy Contract:
0x41c9e39574F40Ad34c79f1C99B66A45eFB830d4c - Token Address: 0xA4253E7C13525287C56550b8708100f93E60509f (MPUSDC)
- Ticket Price:
1_000_0001 MPUSDC - Minimum LP Deposit:
100_000_000100 MPUSDC - Lottery Fee:
150015% - Referral Fee:
100010% - Round Duration:
10minutes
Minting MPUSDC
Our Base Sepolia testnet contract uses a mock USDC token for testing purposes. You can mint MPUSDC to your wallet by calling the mint function on the MPUSDC contract.To mint 100_000 MPUSDC, input
100_000_000_000 in the amount field, with the to field set to your wallet address.spender to the testnet jackpot contract address above.
To approve 100_000 MPUSDC, input
100_000_000_000 in the amount field, with the spender field set to the testnet jackpot contract address 0x6f03c7BCaDAdBf5E6F5900DA3d56AdD8FbDac5De.Mainnet
TEST Contract (Base Mainnet)
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. 0x3368Fc551303aF78543DAA6A7D5Ea978cdB27D0A- Entropy Contract:
0x6E7D74FA7d5c90FEF9F0512987605a6d546181Bb - Token Address: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 (USDC)
- Ticket Price:
1_000_0001 USDC - Minimum LP Deposit:
1_000_0001 USDC - Lottery Fee:
300030% - Referral Fee:
100010% - Round Duration:
10minutes
PROD Contract (Base Mainnet)
This is our mainnet jackpot, the live megapot.io jackpot. Your application should utilize only this contract when live in production. 0xbEDd4F2beBE9E3E636161E644759f3cbe3d51B95- Entropy Contract:
0x6E7D74FA7d5c90FEF9F0512987605a6d546181Bb - Token Address: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 (USDC)
- Ticket Price:
1_000_0001 USDC - Lottery Fee:
300030% - Referral Fee:
100010% - Round Duration:
1day
Running the Jackpot Manually
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
getJackpotFeefunction 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)oropenssl rand -hex 32. Prefix with0x
