token metadata usage fixes

This commit is contained in:
Tim
2024-03-27 12:05:49 -04:00
parent 9232049e61
commit 09d6951067
2 changed files with 3 additions and 4 deletions

View File

@@ -29,8 +29,8 @@ import {FixedNumber} from "ethers";
import {computed, ref} from "vue";
const s = useStore()
const props = defineProps(['addr', 'amount', 'onWithdraw'])
const token = await getToken(props.addr)
const props = defineProps(['chainId', 'addr', 'amount', 'onWithdraw'])
const token = await getToken(props.chainId, props.addr)
const fixed = computed(() => FixedNumber.fromValue(props.amount, token.d, {
width: 256,
decimals: token.d