Search…
depositPermitted()
Bundle approval with the deposit transaction

Function depositPermitted()

1
function depositPermitted(
2
Token pool,
3
uint256 tokenAmount,
4
uint256 deadline,
5
uint8 v,
6
bytes32 r,
7
bytes32 s
8
) external
Copied!
depositPermitted is a deposit function that allows you to bundle the approval with the deposit transaction.

Function Arguments

Name
Type
Description
Token
pool
The address of the token deposited into the pool
uint256
tokenAmount
The amount to deposit
uint256
deadline
Setting a timestamp after which the permission is no longer valid
uint8
v
Must produce valid secp256k1 signature from the holder along with r and s
bytes32
r
Must produce valid secp256k1 signature from the holder along with v and s
bytes32
s
Must produce valid secp256k1 signature from the holder along with r and v
All pools on Bancor are initiated at 1:1 ratio between reserve to pool token. Once fees are collected, this ratio will change to represent the increased value of pool tokens to reserve. For example, if the ratio is 1 pool token : 2 reserve, it means that the pool token value has doubled since initiation.
See Errors and Troubleshooting for a list of common errors and how to resolve them.