Skip to Content
GuidesRecipesStablecoin staking

Recipe: stablecoin staking

Goal — Let trusted operators earn yield on approved stablecoins. The policy pins the protocols and the assets, so the treasury never touches unvetted contracts.

Good for:

  • Stablecoin-heavy treasuries that want productive reserves.
  • Finance and operations teams that execute for a DAO.
  • Program budgets: grants, business development, runway.

Configuration

  • Protocol actions — select the exact staking or lending contracts that are permitted.
  • Asset scoping — define which stablecoins members can deposit and withdraw.
  • Allowances — a limit per asset and interval (daily, weekly, monthly, quarterly, or yearly). An allowance is optional; without one, the policy permits unlimited execution for that asset.

Example

  • Assets: USDC and DAI.
  • Protocols: the approved staking contracts.
  • Allowances: USDC 50,000 monthly; DAI 25,000 monthly.

Steps

  1. Open Policies and click Create policy.
  2. Name the policy, for example “Stablecoin Staking”, and assign it to the vaults.
  3. Add the members that get staking permission.
  4. In Actions, click Add action and select the staking or DeFi action for your protocol.
  5. Choose the allowed stablecoins and the approved protocol contracts.
  6. Configure the allowances per asset.
  7. Click Apply Changes and sign with the Safe.

The Roles Modifier validates every transaction against the policy before execution.

Do it as code

DeFi Kit ships tested permission sets for the common protocols. The protocol part of this policy as a constellation permission file:

import { defikit } from '@zodiaceco/sdk/actions' export default [ defikit.aave_v3.deposit({ label: 'Lend stables on Aave', market: 'Core', targets: ['USDC', 'DAI'], }), ] satisfies Permissions

The preset pins the protocol and the assets, but it does not limit amounts, and an allowance cannot be attached to a preset afterwards. Set the caps in the app as shown above. To cap amounts in code, author the deposit permission yourself with an allowance — see Allowances and DeFi Kit presets.

Start from the Roles quickstart.

Last updated on