Auction
Learn about Rewards Auction in Enjoyoors Protocol.

Auction step-by-step:
- The Target Protocol generates rewards and sends them to Rewards Treasury. 
- The Rewards Treasury emits the corresponding event. 
- The Relayer reads the event from Rewards Treasury. 
- The Relayer reaches consensus. 
- The Participant starts an auction. 
- The Participant makes a bid for opene lots. 
- The Auction chooses the auction winner. 
- The Participant receives rewards voucher for winning the auction. 
- The Auction issues rewards voucher for the winner (Participant). 
- The Auction sends a portion (determined by Governance) gigaAssets to Insurance Pool. 
- The Auction sends gigaAssets to gigaCDP. These funds are distributed to the depositors as rewards for their participation. 
- The Winner (Participant) redeems rewards by using rewards voucher from Rewards Treasury. 
@startuml
autonumber
actor Participant
participant "Target Protocol"
participant "Rewards Treasury"
participant Relayer
participant "gigaCDP"
participant "Auction"
participant "Insurance Pool"
"Target Protocol" -> "Rewards Treasury": Send rewards
"Rewards Treasury" -> "Rewards Treasury": Emit event
Relayer -> "Rewards Treasury": Listen to event
Relayer -> Relayer : Reach consensus
Relayer -> "Auction": Broadcast signed transaction
Participant -> "Auction": Start auction
Participant -> "Auction": Make a bid
"Auction" -> "Auction": Choose a winner
Participant -> "Auction": Request rewards voucher 
"Auction" -> Participant: Issue the rewards voucher
"Auction" -> "Insurance Pool": Send gigaAssets
"Auction" -> "gigaCDP": Send gigaAssets
Participant -> "Rewards Treasury": Redeem the rewards
"Rewards Treasury" -> Participant: Transfer the rewards
@endumlLast updated