Events
vEPOCH contract events
Deposited
event Deposited(uint256 depositId);
This event is emitted upon any new deposits into the contract. This event can be used to build out a backend which tracks each position within the contract.
DepositExtend
event DepositExtend(
uint256 _depositId,
uint32 _secondsExtended);
This event is emitted whenever a deposit owner extends a deposit's lock duration.
WithdrawnForfeit
event WithdrawnForfeit(
uint256 depositId,
uint256 depositTokensReturned,
uint256 veTokensBurned,
uint256 rewardForfeit);
This event is emitted when a user calls the withdrawForfeit method and forfeits some reward tokens (EPOCH) to get back some deposit tokens (EPOCH-LP). Note that the contract allows for partial withdrawals.
Withdrawn
event Withdrawn(
uint256 depositId,
uint256 depositTokensReturned,
uint256 veTokensBurned);
This event is emitted when a user calls the withdrawal method and the contract returns some deposit tokens (EPOCH-LP). Note that the contract allows for partial withdrawals.
Authorised
event Authorised(
address authorisedAddress,
bool newAuthorisationStatus);
This event is emitted whenever the DAO (owner) sets the authorised status of an address.
MaxDepositDurationSet
event MaxDepositDurationSet(uint256 newMaxDepositDuration);
This event is emitted whenever the DAO (owner) sets the maximum deposit duration.
DepositOwnershipTransferred
event DepositOwnershipTransferred(
uint256 depositId,
address newOwner);
This event is emitted whenever a deposit owner transfers ownership of their deposits to another address.
RewardClaimed
event RewardClaimed(
uint256 depositId,
uint256 yieldTokenAmount);
This event is emitted each time some reward tokens are claimed from any deposited position. Users can claim from multiple deposits at the same time which would cause multiple events to be emitted.
RewardForfeit
event RewardForfeit(
uint256 depositId,
uint256 yieldTokenAmount);
This event is unused. Reward token amounts forfeited can be found and tracked in the WithdrawnForfeit event.
Last updated