easyway
Sign inCreate free account

DAI, USDS, SKY and SPK: the Sky ecosystem at one checkout

MakerDAO renamed itself Sky, launched a new stablecoin next to DAI, replaced MKR with SKY, and now Spark, a lender built on top of it, has its own token too. A customer from that world may hold any of the four. easyway accepts all four on Ethereum, but they behave differently at checkout: two are dollars and two are not. This post shows which is which, the look-alikes that don't count, and an invoice that offers all of them.

The four tokens

TokenWhat it isContractPriced atCounted after
DAIThe original dollar stablecoin of MakerDAO0x6B17…1d0FExactly 1 USD12 blocks (~3 min)
USDSSky Dollar, DAI's successor0xdC03…384FExactly 1 USD12 blocks (~3 min)
SKYGovernance token, MKR's successor0x5607…9279Market price12 blocks (~3 min)
SPKToken of Spark, a lender in the Sky ecosystem0xc200…b066Market price12 blocks (~3 min)

All four are ERC-20 tokens on Ethereum and are paid to the same kind of per-invoice deposit address, so the integration is identical. The full contract addresses are on each coin page. The difference that matters is the Priced at column. DAI and USDS are counted as exactly one dollar each, with no live price lookup, so a $500 invoice asks for 500 USDS or 500 DAI. SKY and SPK are priced from the market at the moment the customer picks the coin, and after the payment they stay SKY or SPK on your balance, so their price moves are yours.

DAI and USDS are two coins, not one

Holders can convert DAI to USDS and back 1:1 in Sky's own app, so it is tempting to treat them as the same dollar. On the blockchain they are two contracts, and easyway keeps them as two coins with two balances. A payment in DAI is credited as DAI and withdrawn as DAI; the same goes for USDS. If your accounting only wants one of them, offer only that one in allowed_assets, or convert after you withdraw. One technical difference: DAI is a plain contract, while USDS is an upgradeable proxy, so a USDS transfer costs slightly more gas (about 57,000). The customer pays that gas, not you.

Sky tokens that can't pay an invoice

TokenWhy it doesn't countWhat the customer does
MKRThe old governance token, a different contractUpgrade to SKY first (24,000 SKY per MKR, one way)
sUSDSUSDS deposited in Sky's savings contractWithdraw to USDS, then pay
Staked SKYHeld by Sky's staking contracts, not the walletWithdraw it to a wallet, then pay
Staked SPKHeld by Spark's staking, not the walletUnstake to SPK, then pay
Any of them on another chainA bridged copy with its own contractPay on Ethereum

The watcher only counts transfers of the four contracts above into the invoice's deposit address. A savings or staked position is a different token, so sending it to the address does not mark the invoice paid. If a customer pays from an exchange, they pick the token and Ethereum (ERC-20) as the network; the guide to paying from an exchange shows the steps.

One invoice that offers all four

Price the order in dollars and let the customer choose. The checkout lists only the coins in allowed_assets, locks the amount for each one when the customer picks it, and sends the signed invoice.paid webhook when the payment is confirmed:

curl -X POST https://api.easyway.cash/v1/invoices \
  -H "Authorization: Bearer $EASYWAY_API_KEY" \
  -H "Idempotency-Key: order-5120" \
  -H "Content-Type: application/json" \
  -d '{"amount":"500","currency":"USD","order_id":"5120",
       "allowed_assets":["USDS_ERC20","DAI_ERC20","SKY_ERC20","SPK_ERC20"],
       "lifetime":60}'

To accept only the dollar tokens, keep USDS_ERC20 and DAI_ERC20 and drop the other two. To price the invoice in a token instead of dollars, set currency to its id, for example "SKY_ERC20". The quickstart walks through the full flow, there are ready-made clients in Node.js, Python and PHP, and limiting the checkout to some coins covers allowed_assets in more detail.

What it costs

TokenIgnored belowMin. withdrawalWithdrawal fee
DAI0.01 DAI0.5 DAI1.5 DAI
USDS0.01 USDS0.5 USDS1.5 USDS
SKY0.05 SKY8 SKY27 SKY
SPK0.8 SPK43 SPK140 SPK

The platform fee is a flat 0.5% of each confirmed payment for all four, so a 500 USDS payment leaves 497.5 USDS on your balance. The withdrawal fee is flat per token and covers the Ethereum gas of one transfer, which is why it comes to roughly $1.50 to $1.80 worth of each token at today's prices. Transfers below the dust line are ignored. easyway holds what you receive on your balance until you withdraw it to a wallet you whitelisted (see security); compare the pricing page for the other coins.

Create free accountRead the API docsAlready have an account? Sign in
Accept DAI, USDS, SKY and SPK on one checkout | easyway