GaugeStaker Contract
Last Update: June 2022
What is the GaugeStaker?
How does the GaugeStaker work?
GaugeStaker Functionality
Deposit SPIRIT to mint binSPIRIT
// deposit 'want' and lock
function _deposit(address _user, uint256 _amount) internal nonReentrant whenNotPaused {
uint256 _pool = balanceOfWant();
want.safeTransferFrom(msg.sender, address(this), _amount);
uint256 _after = balanceOfWant();
_amount = _after.sub(_pool); // Additional check for deflationary tokens
if (_amount > 0) {
if (balanceOfVe() > 0) {
increaseUnlockTime();
veWant.increase_amount(_amount);
} else {
_createLock();
}
_mint(_user, _amount);
emit DepositWant(balanceOfVe());
}
}Vote on which gauges to boost
Pass through tokens between strategies and gauges
Claim SpiritSwap protocol fees
Whitelisting strategies
Upgrading strategies
Contracts
Last updated
Was this helpful?