filled amount fix

This commit is contained in:
Tim Olson
2023-12-08 17:40:10 -04:00
parent 46a78285f3
commit 97aa965cd9
3 changed files with 4 additions and 3 deletions

View File

@@ -176,7 +176,7 @@ const orders = computed(()=>{
})
st.start = dateString(st.start)
const fmtX18 = {decimals: 18, width: 256, signed: false};
st.filled = st.amountIsInput ? st.filledIn : st.filledOut
st.filled = o.amountIsInput ? st.filledIn : st.filledOut
st.avg = BigInt(st.filled) === 0n ? null :
FixedNumber.fromValue(status.filledOut, 0, fmtX18)
.div(FixedNumber.fromValue(status.filledIn, 0, fmtX18))