diff --git a/app/utils/events.js b/app/utils/events.js index 3d19a39..9bd71b6 100644 --- a/app/utils/events.js +++ b/app/utils/events.js @@ -22,11 +22,12 @@ const lookups = { } } +const hexToDecimal = hex => Number(parseInt(hex, 16)) const formatVaultEvent = async event => { const { returnValues } = event return { ...returnValues, - ref: Number(returnValues.ref.slice(2)) + ref: hexToDecimal(returnValues.ref) } }