ICurveGauge
Title: ICurveGauge
Author: Vendored minimal subset of Curve LiquidityGauge (https://github.com/curvefi/curve-dao-contracts/blob/master/contracts/gauges/LiquidityGaugeV5.vy).
Upstream license: MIT.
Minimal vendored subset of a Curve liquidity gauge used to stake LP tokens for CRV (and optional extra) rewards. Optional: the adapter runs unstaked (gauge == address(0)) or stakes its LP here. Only the selectors the adapter calls are declared.
Functions
deposit
Stakes value LP tokens (pulled from the caller; the adapter approves first).
function deposit(uint256 value) external;Parameters
| Name | Type | Description |
|---|---|---|
| value | uint256 |
withdraw
Unstakes value LP tokens back to the caller.
function withdraw(uint256 value) external;Parameters
| Name | Type | Description |
|---|---|---|
| value | uint256 |
claim_rewards
Claims all pending reward tokens (CRV + extras) for addr, sending them to addr.
function claim_rewards(address addr) external;Parameters
| Name | Type | Description |
|---|---|---|
| addr | address |
balanceOf
Returns the caller's / account's staked LP balance.
function balanceOf(address account) external view returns (uint256);Parameters
| Name | Type | Description |
|---|---|---|
| account | address |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | uint256 |