Skip to content
NAVIDocs
Open app
Skip to Content

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

OperationMainnet function in lending_core::incentive_v3
Supply the deposit coindeposit_with_account_cap
Withdraw to a balancewithdraw_with_account_cap_v2

Resolve the lending package and market objects before constructing either call.

On this page