-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
37db549
commit 1e4af87
Showing
46 changed files
with
1,075 additions
and
968 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 11 additions & 11 deletions
22
.gitbook/developers/modules/injective/auction/03_end_block.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
--- | ||
sidebar_position: 3 | ||
title: End-Block | ||
title: End-Block | ||
--- | ||
|
||
# EndBlock | ||
# End-Block | ||
|
||
### Auction Settlement | ||
|
||
The settlement of a given auction round occurs when `blockTime ≥ EndingTimeStamp.` If a non-zero INJ bid was placed during this period (i.e., there exists a `LastBid`), the following procedure will take place: | ||
The settlement of a given auction round occurs when `blockTime ≥ EndingTimeStamp.` If a non-zero INJ bid was placed during this period (i.e. there exists a `LastBid`), the following procedure will take place: | ||
|
||
* The winning INJ bid amount is burned. | ||
* The basket of coins held by the auction module is transferred to the winning bidder. | ||
* `LastAuctionResult` is written to state and `EventAuctionResult` is emitted. | ||
* The `LastBid` is cleared. | ||
* The AuctionRound is incremented by 1 and the EndingTimestamp is incremented by `AuctionPeriod`. | ||
* The accumulated exchange fees are transferred from the `exchange` module to the `auction` module for the new upcoming auction. | ||
- The winning INJ bid amount is burned. | ||
- The basket of coins held by the auction module is transferred to the winning bidder. | ||
- `LastAuctionResult` is written to state and `EventAuctionResult` is emitted. | ||
- The `LastBid` is cleared. | ||
- The AuctionRound is incremented by 1 and the EndingTimestamp is incremented by `AuctionPeriod`. | ||
- The accumulated exchange fees are transferred from the `exchange` module to the `auction` module for the new upcoming auction. | ||
|
||
If the round closed without any successful bids, the existing coin basket will be rolled over into the next auction and combined with the new accumulated fee basket. | ||
If the round closed without any successful bids, the existing coin basket will be rolled over into the next auction and combined with the new accumulated fee basket. | ||
|
||
![img.png](img.png) | ||
![img.png](./img.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
# Auction | ||
# `Auction` | ||
|
||
## Abstract | ||
|
||
The `auction` module periodically obtains a basket of tokens accumulated from trading fees from the `exchange` module and auctions the basket to the highest bidder in an open English auction for INJ. The winner of this auction receives the basket of tokens, and the winning INJ bid amount from this auction is burned. | ||
The `auction` module periodically obtains a basket of tokens accumulated from trading fees from the `exchange` module and auctions the basket to the highest bidder in an open English auction for INJ. The winner of this auction receives the basket of tokens and the winning INJ bid amount from this auction is burned. | ||
|
||
## Contents | ||
|
||
1. [**State**](01_state.md) | ||
2. [**Messages**](02_messages.md) | ||
3. [**End Block**](03_end_block.md) | ||
4. [**Events**](04_events.md) | ||
5. [**Params**](05_params.md) | ||
1. **[State](./01_state.md)** | ||
2. **[Messages](./02_messages.md)** | ||
3. **[End Block](./03_end_block.md)** | ||
4. **[Events](./04_events.md)** | ||
5. **[Params](./05_params.md)** | ||
|
||
|
210 changes: 122 additions & 88 deletions
210
.gitbook/developers/modules/injective/exchange/00_derivative_market_concepts.md
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.