# ResourceExchangeRoute

> Kinbarrow modding reference — content tree `4a103dcdb658a75a`, version `0.2.0+main.e011511f4`.

[Effects and mechanisms](https://kinbarrow.com/modding/latest/mechanisms.md)

Used by [Spell](https://kinbarrow.com/modding/latest/spell.md#resource-exchange-route), [ClassDef](https://kinbarrow.com/modding/latest/class-def.md#resource-exchange-route), [MagicItem](https://kinbarrow.com/modding/latest/magic-item.md#resource-exchange-route), [Npc](https://kinbarrow.com/modding/latest/npc.md#resource-exchange-route), [FeatDef](https://kinbarrow.com/modding/latest/feat-def.md#resource-exchange-route), [RaceDef](https://kinbarrow.com/modding/latest/race-def.md#resource-exchange-route), [SubclassDef](https://kinbarrow.com/modding/latest/subclass-def.md#resource-exchange-route).

This is a nested shape inside a content file. The catalog explains context validation and links real RON examples.

One direction offered by a generic resource exchange.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `capacity_cap` | `boolean` | default `false` | Clamp the credit to the destination ledger's authored capacity. |
| `destination` | `FeatureResourceLedger` | required | Ledger credited by the accepted conversion. |
| `economy` | `FeatureActionEconomy` | required | Turn economy paid when this route is accepted. |
| `limit` | `FeatureActionLedger` | optional | Optional per-turn/rest/use gate paid in addition to the exchanged source. |
| `rates` | `ResourceExchangeRate[]` | required | Finite, duplicate-free conversion table. |
| `source` | `FeatureResourceLedger` | required | Ledger paid by the accepted conversion. |
| `temporary_destination` | `boolean` | default `false` | Mark created destination spell slots as temporary until a long rest. |


## Supporting shapes

- [FeatureActionEconomy](https://kinbarrow.com/modding/latest/spell.md#feature-action-economy)
- [FeatureActionLedger](https://kinbarrow.com/modding/latest/spell.md#feature-action-ledger)
- [FeatureResourceLedger](https://kinbarrow.com/modding/latest/mechanisms/spell/feature-resource-ledger.md)
- [ResourceExchangeRate](https://kinbarrow.com/modding/latest/spell.md#resource-exchange-rate)
