Skip to content

Commit

Permalink
Added broken adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Mar 25, 2022
1 parent 4c7973e commit 7fb2aa2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
for i in $(echo ${{ steps.file_changes.outputs.files_modified}} | tr -d '[]' | tr "," "\n")
do
{
node ${{ github.workspace }}/test.js ${{ github.workspace }}/${i} > output.txt
node ${{ github.workspace }}/test.js ${{ github.workspace }}/${i} > output.txt 2>&1
node ${{ github.workspace }}/.github/workflows/commentResult.js /home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/output.txt "${{ github.repository_owner }}" "${{ github.event.repository.name }}" "${{ github.event.number }}" ${i}
if grep -q '------ ERROR ------' output.txt; then
if grep -q "\-\-\-\- ERROR \-\-\-\-" output.txt; then
exit 1;
fi
} || {
Expand All @@ -31,9 +31,9 @@ jobs:
for i in $(echo ${{ steps.file_changes.outputs.files_added}} | tr -d '[]' | tr "," "\n")
do
{
node ${{ github.workspace }}/test.js ${{ github.workspace }}/${i} > output.txt
node ${{ github.workspace }}/test.js ${{ github.workspace }}/${i} > output.txt 2>&1
node ${{ github.workspace }}/.github/workflows/commentResult.js /home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/output.txt "${{ github.repository_owner }}" "${{ github.event.repository.name }}" "${{ github.event.number }}" ${i}
if grep -q '------ ERROR ------' output.txt; then
if grep -q "\-\-\-\- ERROR \-\-\-\-" output.txt; then
exit 1;
fi
} || {
Expand Down
3 changes: 2 additions & 1 deletion projects/stargatefinance/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ const tvl = (chain) => async (timestamp, ethBlock, chainBlocks) => {
} = CONFIG

if (chain === 'avalanche') chain = 'avax'


throw new Error('Chaos')
const balances = {}
const block = chainBlocks[chain]
const tokens = []
Expand Down

0 comments on commit 7fb2aa2

Please sign in to comment.