9 lines
280 B
Bash
Executable File
9 lines
280 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#!/bin/bash
|
|
|
|
CONTRACT=${1:-0x82aF49447D8a07e3bd95BD0d56f35241523fBab1}
|
|
DECIMALS=$(cast call $CONTRACT "decimals()" | cast to-dec)
|
|
BALANCE=$(cast call $CONTRACT 'balanceOf(address)' "${2:-$VAULT}" | cast to-dec)
|
|
echo scale=$DECIMALS ';' $BALANCE / 10 ^ $DECIMALS | bc
|