Skip to content
Lattice

ICurveGauge

Git Source

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

NameTypeDescription
valueuint256

withdraw

Unstakes value LP tokens back to the caller.

function withdraw(uint256 value) external;

Parameters

NameTypeDescription
valueuint256

claim_rewards

Claims all pending reward tokens (CRV + extras) for addr, sending them to addr.

function claim_rewards(address addr) external;

Parameters

NameTypeDescription
addraddress

balanceOf

Returns the caller's / account's staked LP balance.

function balanceOf(address account) external view returns (uint256);

Parameters

NameTypeDescription
accountaddress

Returns

NameTypeDescription
<none>uint256