CCDM Recipe IAMs

An overview of CCDM enabled Royco Markets

Enabling a Recipe IAM to work with CCDM is simple: the deposit and withdrawal recipes for the market must deposit and withdraw into/from the Deposit Locker respectively. The process for creating a Recipe IAM and negotiating the incentives for your campaign remains the same.

Note: The input tokens for CCDM enabled markets must abide to these guidelines.

Deposit Recipe

  1. Call amount() on the WeirollWalletHelper contract to get the AP's fill/deposit amount of input tokens.

  2. Call approve() on the market's input token to allow the Deposit Locker to spend the amount returned in step one.

  3. Call deposit() on the Deposit Locker.

Withdrawal Recipe

  1. Call withdraw() on the Deposit Locker.

Last updated