pDAI/pUSDC to MATH 1.1

The cost of 1 MATH is 1 pDAI or 1 pUSDC, to get this price you have to call a function on the MATH contract.

We can look at the verified contract code to see the prices: View the contract code.

This guide assumes you’ve read and understand how to interact with contracts.

Check the current exchange rates to know which route is profitable!

Step-by-step Guide

  1. Add pDAI or pUSDC to scgui.aff.icu. For this example we will use pDAI.

  2. Open the pDAI contract and call approve() with spender MATH 1.1 and amount 1000000000000000000 for 1 token

  3. Open the MATH 1.1 contract and call Random() to mint 1 token, this is sent to the contract

  4. With the MATH 1.1 contract open, call BuyWithDAI() with amount 1000000000000000000 to buy 1 token, this is sent straight to your wallet

  5. Swap the MATH 1.1 on PulseX for PLS or pDAI

Repeat steps 3-6 as long as there is a decent profit margin. Once you are comfortable you can approve a higher amount of tokens to skip step 3 and speed up your arbs!

Optimizations

Use my multi mint contracts to do this even faster! Instead of calling BuyWithDAI() once per transaction you can now loop it up to 1000-2000 times in a single transaction!

  1. Open the pDAI contract on scgui.aff.icu and call approve() with spender 0x1322Dab9eE385Bb3D81f75EBb8356015B0872e53 and any amount followed by 18 zeros, example: 100000000000000000000 for 100 tokens

  2. Add the Multi MATH 1.1 contract to scgui.aff.icu

  3. Open it and call the function multiBuyWithDAI() with iterations 100, this will purchase 100 MATH 1.1 from the contract in one transaction

This should help reduce the gas costs to mint each token down to 5-10 PLS

Last updated