Skip to content
Protocol contracts not yet configured for this build
Enter app

Contract reference

Events

Signatures and firing conditions. For usage examples see developer events.

PloutoRegistry

EventFires when
ProtocolWired(address,address,address,address)wireProtocol succeeds. Once.
PloutoInitialized(address,address,address,address,address,uint256,uint256)setPloutoTokenOnce succeeds. Once, ever.

PloutoRevenueRouter

EventFires when
PonsFeesClaimed(uint256,uint256,uint256)A claim credited a non-zero measured delta.
RevenueRouted(uint256,uint256,uint256,uint256,uint256,uint256)An epoch was split and forwarded.
DonationReceived(address,uint256)ETH arrived from anyone other than the escrow.
DonationsSweptToReserve(uint256)Accumulated donations were forwarded.

PonsFeesClaimed carries (reported, measuredDelta, unallocatedRevenue). A gap between the first two means the escrow reported more than it sent.

GravityStaking

EventFires when
RouterSet(address)The router is wired. Once.
Staked(address,uint256,uint256,uint256,uint64)A position opens.
RewardsNotified(uint256,uint256,uint256)The router delivers a staker share.
RewardsClaimed(address,uint256,uint256)A position harvests. Repeatable.
Withdrawn(address,uint256,uint256,uint256)A matured position closes.
EmergencyWithdrawn(address,uint256,uint256,uint256)An emergency exit; last field is forfeited rewards.
EmergencyModeSet(bool)Emergency declared or cleared.

RewardsNotified(amount, accRewardPerWeight, heldUndistributed) — a non-zero third field means the distribution was held as rollover rather than distributed.

BuybackExecutor

EventFires when
RouterSet(address)The router is wired. Once.
BudgetFunded(address,uint256,uint256)The router delivers the buyback share.
DonationReceived(address,uint256)Unsolicited ETH arrives.
BuybackExecuted(uint256,uint256,uint8,bool,uint256,uint256,uint256)A buyback completes and retires.
SafetyParamsUpdated(uint256,uint256,uint256,uint256)An admin changes the bounds.

BuybackExecuted(ethSpent, tokensRetired, phase, realBurn, minTokensOut, newBudget, executionIndex). The realBurn flag distinguishes a genuine supply reduction from a dead-address transfer.

PloutoReserve

EventFires when
RouterSet(address)The router is wired. Once.
RevenueDeposited(address,uint256,uint256)The router deposits the reserve share.
DonationReceived(address,uint256,uint256)Unsolicited ETH arrives.
WithdrawalProposed(uint256,address,address,uint256,uint64,string)A governor proposes.
WithdrawalExecuted(uint256,address,address,uint256,string)A proposal executes after its timelock.
WithdrawalCancelled(uint256,string)A proposal is vetoed or withdrawn.

Inherited

All five contracts emit OpenZeppelin's RoleGranted, RoleRevoked and RoleAdminChanged. Staking, the executor and the router also emit Paused / Unpaused. The registry emits OwnershipTransferStarted / OwnershipTransferred.