From 70b0f02e6d8894508b617d1d4144ac767f4a3e5a Mon Sep 17 00:00:00 2001 From: Kevin Davis Date: Thu, 7 May 2020 13:44:43 -0400 Subject: [PATCH] fix: use correct abci method in pricefeed spec --- x/pricefeed/spec/{06_begin_block.md => 06_end_block.md} | 4 ++-- x/pricefeed/spec/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename x/pricefeed/spec/{06_begin_block.md => 06_end_block.md} (78%) diff --git a/x/pricefeed/spec/06_begin_block.md b/x/pricefeed/spec/06_end_block.md similarity index 78% rename from x/pricefeed/spec/06_begin_block.md rename to x/pricefeed/spec/06_end_block.md index 812db197..4907cced 100644 --- a/x/pricefeed/spec/06_begin_block.md +++ b/x/pricefeed/spec/06_end_block.md @@ -1,6 +1,6 @@ -# Begin Block +# End Block -At the start of each block, the current price is calculated as the median of all raw prices for each market. The logic is as follows: +At the end of each block, the current price is calculated as the median of all raw prices for each market. The logic is as follows: ```go // EndBlocker updates the current pricefeed diff --git a/x/pricefeed/spec/README.md b/x/pricefeed/spec/README.md index 075a6a1a..32d88e86 100644 --- a/x/pricefeed/spec/README.md +++ b/x/pricefeed/spec/README.md @@ -6,8 +6,8 @@ 3. **[Messages](03_messages.md)** 4. **[Events](04_events.md)** 5. **[Params](05_params.md)** -6. **[BeginBlock](06_begin_block.md)** +6. **[EndBlock](06_end_block.md)** ## Abstract -`x/pricefeed` is an implementation of a Cosmos SDK Module that handles the posting of prices for various markets by a group of whitelisted oracles. At the beginning of each block, the median price of all oracle posted prices is determined for each market and stored. +`x/pricefeed` is an implementation of a Cosmos SDK Module that handles the posting of prices for various markets by a group of whitelisted oracles. At the end of each block, the median price of all oracle posted prices is determined for each market and stored.