Account Cap demo
Migration notes for the legacy Account Cap example and links to the current mainnet interfaces.
Legacy example
The Account Cap demo shows how a vault can hold an AccountCap. Its deposit and withdrawal call incentive_v2 functions that abort on mainnet. Use the v3 AccountCap integration example when implementing a vault today.
Port the calls to v3
| Operation | Mainnet function in lending_core::incentive_v3 |
|---|---|
| Supply the deposit coin | deposit_with_account_cap |
| Withdraw to a balance | withdraw_with_account_cap_v2 |
Resolve the lending package and market objects before constructing either call.