Search…
About Bancor Network
Bancor V3
Bancor Basics
Resources for DAOs
Security & Audits
Contracts & Functions
Contracts
Write Functions
Transaction Prerequisites
Trading
Adding Liquidity
Removing Liquidity
Flashloan
Migrating Liquidity to v3
Rewards
join()
joinPermitted()
stakeRewards()
claimRewards()
leave()
Read Functions
Data & Events
Developer Guides
Bancor Vortex Burner
Bancor Etherscan Guide
REST API
Marketing
Brand Guide
Powered By
GitBook
leave()
This function is in the StandardRewards.sol contract.
Function leave()
StandardRewards.sol
1
function
leave
(
uint256
id
,
uint256
poolTokenAmount
)
external
greaterThanZero
(
poolTokenAmount
)
nonReentrant
Copied!
This function is used to withdraw staked pool tokens from a rewards program.
Function Arguments
Name
Type
Description
id
uint256
The ID of the rewards program.
poolTokenAmount
uint256
The number of pool tokens to withdraw.
This function does not return anything.
Previous
claimRewards()
Next - Contracts & Functions
Read Functions
Last modified
19d ago
Copy link
Contents
Function leave()
Function Arguments