Skip to content

Commit

Permalink
Change structure
Browse files Browse the repository at this point in the history
  • Loading branch information
sorawit committed Jul 9, 2024
1 parent 5370cd5 commit 615c859
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pandoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: docker build -t custom-pandoc-latex .

- name: Generate PDF with Pandoc
run: docker run --rm --volume "${{ github.workspace }}:/data" --user `id -u`:`id -g` custom-pandoc-latex doc.md -o doc.pdf --template=/data/template.tex
run: docker run --rm --volume "${{ github.workspace }}:/data" --user `id -u`:`id -g` custom-pandoc-latex doc.md -o doc.pdf --template=/data/doc.tex

- name: Move PDF to a temporary directory
run: |
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ The aggregation algorithm in BandChain is designed to balance the amount of voti
At any given time, the registered price for a symbol is the weighted median value of the prices reported by all validators, excluding those who report `UNAVAILABLE`. Price data is weighted by the validator’s voting power, with additional multipliers applied to prioritize more recent submissions.

BandChain applies multipliers to the most recent price points to ensure greater influence. The voting power is adjusted as follows:
![power](./power.png){ width=275px }
![power](./assets/power.png){ width=275px }

Note that if the majority voting power of validators submits `UNSUPPORTED`, the aggregated final price will not be available, and the symbol will be registered as `INVALID`.

Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion run.sh

This file was deleted.

File renamed without changes.
1 change: 1 addition & 0 deletions scripts/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker run --rm --volume "`pwd`:/data" --user `id -u`:`id -g` custom-pandoc-latex doc.md -o doc.pdf --template=/data/doc.tex

0 comments on commit 615c859

Please sign in to comment.