token metadata usage fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user