Funds
Let your users invest in curated, professionally managed investment funds and redeem their shares.
A fund is a professionally managed investment fund. Your users invest digital dollars (such as USDC) and own shares in their account. The shares' value follows the fund's performance, and your users can redeem them back to dollars.
A fund is an on-chain vault run by a professional manager on Enzyme. The user deposits a stablecoin and gets fund shares in their wallet; the shares' value follows the fund's performance, and they can be redeemed for the stablecoin.
Notus curates which funds are available. Ask the Notus team which funds are open for your project.
Show the funds
const catalog = await notus.funds.listFundsCatalog()Each fund has its name, manager (partner), network, assets under management (aumUsd), share price, performance, fees and riskLevel. Each fund lives on a network, like a bank system.
Each fund has its name, manager (partner), chain, assets under management (aumUsd), share price, performance, fees and riskLevel.
For a fund page, Get Fund Detail, its live holdings (getFundComposition), a price chart (getFundPerformanceChart) and its returns since launch (getFundResults) take a fundId (the id or the slug).
Deposit
const quote = await notus.funds.createFundDepositQuote({
fundId: '<fund-slug>',
walletAddress,
tokenIn: USDC_ARBITRUM,
amount: '100',
payGasFeeToken: USDC_ARBITRUM,
})
if (!quote.userOperationHash) throw new Error(JSON.stringify(quote.revertReason))
await notus.userOperations.executeUserOperation({
userOperationHash: quote.userOperationHash,
signature: await signer.signMessage({ message: { raw: quote.userOperationHash } }),
})Pass the user's account address (walletAddress), the currency id they pay with (tokenIn), the amount as text ('100' is 100 dollars in this example), and the currency that pays the network fee (payGasFeeToken). Then have the user approve the operation with their login key and send the approval to executeUserOperation.
tokenIn can be the fund's own currency or another currency, which Notus converts first. Some funds also accept a deposit from another network (chainIdIn).
tokenIn can be the fund's own currency or another token, which Notus swaps first. Some funds also accept a deposit from another chain (chainIdIn).
Redeem
const quote = await notus.funds.createFundRedeemQuote({
fundId: '<fund-slug>',
walletAddress,
sharesAmount: '12.5',
payGasFeeToken: USDC_ARBITRUM,
})Have the user approve the operation with their login key and send the approval to executeUserOperation the same way.
Sign and execute the same way.
Some funds lock shares for a while after each deposit: Get Fund Shares Lock says when the user can redeem again.
Positions
Get Fund Positions returns a user's shares in each fund, their value in dollars, an approximate profit or loss, and any pending request waiting for the manager.
Get Fund Positions returns, for a wallet, its shares in each fund, their value in dollars, an approximate profit or loss, and any request still waiting for the manager.
Immediate and queued funds
- Enzyme Blue funds settle at once: the deposit buys shares in the same transaction (
settlement: 'immediate'). - Enzyme Onyx funds queue requests: the deposit or redeem is a request the manager fills later, and the operation waits in
AWAITING_MANAGER. AftercanCancelAt, the user can cancel a waiting request with Quote a Fund Cancel. Onyx funds also accept deposits from another chain, bridged through Relay. - Fees. Your
FUND_DEPOSIT/FUND_REDEEMfee (set in the dashboard) is taken in the fund's currency, plus your swap fee whentokenInis swapped or bridged first. - Redeem in kind. When an Enzyme Blue vault can't pay out in its own currency, Notus redeems the underlying assets and swaps them back, without a fee on those swaps.
- Webhooks.
fund.deposit,fund.redeemandfund.processing.