depositFor()
Deposit tokens on behalf of a different address
Some pools might be in deficit which might effect the ability to withdraw the full amount you have deposited (more info).
Function depositFor()
depositFor
is a function that allows you to deposit tokens into a Bancor pool on behalf of a different address and make sure that the received pool tokens will be sent to that address (and not the transaction initiator).
Function Arguments
Name
Type
Description
provider
address
Indicating the address that will receive the pool tokens at the end of the transaction
pool
Token
The address of the token deposited into the pool
tokenAmount
uint256
The amount to deposit
See Errors and Troubleshooting for a list of common errors and how to resolve them.
Last updated