Skip to content

Commit 2fb0574

Browse files
committed
Fix env creation on deployment
1 parent 28f04fe commit 2fb0574

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/provision-bot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
- name: Create Dotenv File
8888
run: |
8989
echo "${{ secrets.ENV }}" > .env
90-
echo "PRIVATE_KEY=${{ secrets.PRIVATE_KEY }}" > .env
90+
echo "PRIVATE_KEY=${{ secrets.PRIVATE_KEY }}" >> .env
9191
echo "ADDRESS=${{ secrets.ADDRESS }}" >> .env
9292
echo "NETWORK=${{ inputs.network }}" >> .env
9393
echo "RPC_URL=${{ inputs.rpc_url }}" >> .env

pondo-bot/src/protocol/runProtocol.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,8 @@ export const runProtocol = async (): Promise<void> => {
404404
// Set the oracle TVL if it's changed by more than 50%
405405
await setOracleTVL();
406406
// Boost the validator if necessary
407-
await boostValidator(VALIDATOR_TO_BOOST, BigInt(blockHeight) / BigInt(EPOCH_BLOCKS));
407+
if (VALIDATOR_TO_BOOST != '')
408+
await boostValidator(VALIDATOR_TO_BOOST, BigInt(blockHeight) / BigInt(EPOCH_BLOCKS));
408409
}
409410

410411
// Can be run in any epoch period

0 commit comments

Comments
 (0)