Skip to content

Commit

Permalink
fix missed address
Browse files Browse the repository at this point in the history
  • Loading branch information
diman-io committed Apr 20, 2022
1 parent 3b70772 commit 310e5bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/rebalance-usdc-for-ido.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ do
if [[ $balance == "" ]]; then
balance=0
fi
eligible_tickets=$($raydium_cli -u $URL ido $POOL user-info --output json-compact | jq '.eligibleTickets')
eligible_tickets=$($raydium_cli -u $URL ido $POOL user-info $address --output json-compact | jq '.eligibleTickets')
aim=$(echo "$eligible_tickets * $usdc_per_ticket" | bc)
if (( $(echo "$balance < $aim" | bc -l) )); then
amount=$(echo "$aim - $balance" | bc -l)
Expand Down

0 comments on commit 310e5bb

Please sign in to comment.