Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

Loading secret fails with undefined variable #39

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ services:
# USDC is the base currency that every other token will swap against so besure to allocate an access amount of USDC
# Note: the amount is in token unit so ETH:2 means we'll always rebalance to have 2 ETH
# - TARGETS=USDC:100 USDT:5 scnSOL:0.5 SOL:0.5
# For targeting specific markets. All markets can be found in https://api.solend.fi/v1/markets/configs?scope=all
# - MARKET=4UpD2fh7xH3VP9QQaXtsS1YY3bxzWhtfpks7FatyKvdY,7tiNvRHSjYDfc6usrWnSNPyuN68xQfKs1ZG2oqtR5F46,GktVYgkstojYd8nVXGXKJHi7SstvgZ6pkQqQhUPD7y7Q
# For targeting specific markets. All markets' address can be found in https://api.solend.fi/v1/markets/configs?scope=all
- MARKET=4UpD2fh7xH3VP9QQaXtsS1YY3bxzWhtfpks7FatyKvdY,7tiNvRHSjYDfc6usrWnSNPyuN68xQfKs1ZG2oqtR5F46,GktVYgkstojYd8nVXGXKJHi7SstvgZ6pkQqQhUPD7y7Q
secrets:
- keypair # secret to encrypte wallet details in container

Expand Down
2 changes: 1 addition & 1 deletion src/libs/secret.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function readSecret(secretName) {
} catch (err) {
if (err.code !== 'ENOENT') {
console.error(
`An error occurred while trying to read the secret path: ${path}. Err: ${err}`
`An error occurred while trying to read the secret path: ${secretName}. Err: ${err}`
)
} else {
console.debug(`Could not find the secret,: ${secretName}. Err: ${err}`)
Expand Down