Events
Events are a special recording mechanism used to broadcast specific events or messages during the execution of smart contracts.
In this section, we will introduce all Events related to Dyson Finance, which allows smart contracts to interact with external applications, such as decentralized applications (dApps)
Pair Factory
PairCreated Event
This event will be emitted after the Factory creates a Pair for dual investment and DEX.
[token0, token1]*: token0
and token1
are terms used to represent the two tokens in a trading pair. These tokens are sorted according to their addresses to ensure consistency and avoid ambiguity.
Pairs
Swap Event
The Pair represents a DEX trading pair. This event will be emitted when a user attempts to swap tokens within the trading pair.
including decimals*: ex: 1000000 amount in USDC represents 1 USDC
Deposit Event
The Pair represents a Dual Investment pair. This event will be emitted when a user attempts to deposit tokens to the pair.
including decimals*: ex: 1000000 amount in USDC represents 1 USDC
Withdraw Event
This event will be emitted when a user attempts to withdraw a note of a pair.
including decimals*: ex: 1000000 amount in USDC represents 1 USDC
ApprovalForAll Event
This event will be emitted after a user sets operatorApprovals permission.
Agency
Register Event
When new users want to create a new membership, this event will be emitted.
Farm
There are two types of pools to help Farm generate Points for users, please review our other document to understand how to grant Points.
Rate Updated Event
When an action affects two types of "Points" pools on Farm this event will be emitted.
Grant Points Event
When the user deposits on Dual Investment Pair and triggers Farm to grant sp this event will be emitted.
Swap Points to $DYSN Event
When the user swaps anyone's Points to DYSN this event will be emitted.
Staking (sDYSN)
Stake Event
When the user stakes $DYSN to get $sDYSN this event will be emitted.
Restake Event
When the user restake $DYSN to get $sDYSN this event will be emitted.
Unstake Position Event
When the user redeems $DYSN from staking vaults this event will be emitted.
Gauge Factory
Gauge Created Event
This event is emitted when a new Gauge is created, indicating the link from the new Gauge to the existing Pair.
Gauge
$sDYSN Deposit Event
This event is emitted when an address deposits $sDYSN to a Gauge
week*: It's the i-th week since 1970/01/01
$sDYSN Apply Withdrawal Event
This event is emitted when an address applies to withdraw $sDYSN from a Gauge.
week*: It's the i-th week since 1970/01/01
$sDYSN Withdraw Event
This event is emitted when an address withdraws its pending $sDYSN from a Gauge.
Bribe Factory
Bribe Created Event
This event is emitted when a new Bribe is created and indicates the link to the gauge.
Bribe
Add Rewards Event
When someone adds rewards to Bribe for users who deposit in Gauge this event will be emitted.
week*: It's the i-th week since 1970/01/01
Claim Rewards Event
When users claim rewards from Bribe this event will be emitted.
week*: It's the i-th week since 1970/01/01
Last updated