For the complete documentation index, see llms.txt. This page is also available as Markdown.

Add liquidity (Mint nTokens)

Deposit from wallet and Mint nTokens

Users can use the batchBalanceAction method to mint nTokens across multiple maturities:

# Deposit 100 DAI and 1 WBTC and Mint nDAI and nWBTC LP tokens.

mintNDaiAction = get_balance_action(2, "DepositUnderlyingAndMintNToken", depositActionAmount=10e18)
mintNWbtcAction = get_balance_action(4, "DepositUnderlyingAndMintNToken", depositActionAmount=1e8)
notional.batchBalanceAction(account.address, [mintNDaiAction, mintNWbtcAction], {"from": account})

Last updated