Skip to content

Commit

Permalink
feat(bid-script): support mainnet Axelar USDC (uusdc)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy108369 committed Sep 7, 2023
1 parent 33905c9 commit 00c4215
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions charts/akash-provider/scripts/price_script_generic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,10 @@ if [[ $hasPrice = true ]]; then
printf "%.*f" "$precision" "$total_cost_uakt"
;;

# sandbox: Axelar USDC
"ibc/12C6A0C374171B595A0A9E18B83FA09D295FB1F2D8C6DAA3AC28683471752D84")
# sandbox: Axelar USDC (uausdc)
"ibc/12C6A0C374171B595A0A9E18B83FA09D295FB1F2D8C6DAA3AC28683471752D84" |
# mainnet: Axelar USDC (uusdc)
"ibc/170C677610AC31DF0904FFE09CD3B5C657492170E7E52372E48756B71E56F2F1")
rate_per_block_usd_normalized=$(bc -l <<<"(${rate_per_block_usd}*1000000)" | awk -v precision="$precision" '{printf "%.*f", precision, $0}')
if bc <<< "$rate_per_block_usd_normalized > $amount" | grep -qw 1; then
printf "requested rate is too low. min expected %.*f%s" "$precision" "$rate_per_block_usd_normalized" "$denom" >&2
Expand Down

0 comments on commit 00c4215

Please sign in to comment.