To interact with the PSM, first identify which coin you want to use, either USDC, USDP (Paxos) or GUSD (Gemini). The contracts you’ll need to interact with are coin-specific.

Handling decimal places

In cases where the decimals in your token and Dai (18 decimal places) are different, i.e. GUSD (2 decimal places)

Legend

Using the coin of your choosing, the steps for interacting with the PSM are explained below.

Swapping coins for Dai

  1. Approve the GemJoin contract to spend the amount of tokens you want to exchange for Dai.
    1. Call <TOKEN ADDRESS>.approve(<GEMJOIN ADDRESS>, <TOKEN AMOUNT>)
      1. Example: https://etherscan.io/tx/0xd3da1dff5e449550311f1058afd82325a7a39802b326f8c96d2619da408f8f23