deposit()
Deposit tokens for ownership in a liquidity pool
Function deposit()
function deposit(Token pool, uint256 tokenAmount)
external
payabledeposit is a function that allows you to deposit tokens into a Bancor liquidity pool.
Function Arguments
Name
Type
Description
pool
Token
The address of the token deposited into the pool
tokenAmount
uint256
The amount to deposit
BNT Deposits
When you deposit BNT into the Bancor pool, you will receive vBNT equal to the number of pool tokens.
Bancor v3 supports infinity pools and deposits as a result. However, the trading liquidity is limited based on the poolFundingLimit() function.
See Errors and Troubleshooting for a list of common errors and how to resolve them.
Last updated
