remove fees for sold shares
This commit is contained in:
parent
4e4ffe8e20
commit
bfbcde4dfc
|
@ -174,17 +174,19 @@ export function calculateCpmmSale(
|
||||||
throw new Error('Cannot sell non-positive shares')
|
throw new Error('Cannot sell non-positive shares')
|
||||||
}
|
}
|
||||||
|
|
||||||
const rawSaleValue = calculateCpmmShareValue(
|
const saleValue = calculateCpmmShareValue(
|
||||||
contract,
|
contract,
|
||||||
shares,
|
shares,
|
||||||
outcome as 'YES' | 'NO'
|
outcome as 'YES' | 'NO'
|
||||||
)
|
)
|
||||||
|
|
||||||
const { fees, remainingBet: saleValue } = getCpmmLiquidityFee(
|
const fees = noFees
|
||||||
contract,
|
|
||||||
rawSaleValue,
|
// const { fees, remainingBet: saleValue } = getCpmmLiquidityFee(
|
||||||
outcome === 'YES' ? 'NO' : 'YES'
|
// contract,
|
||||||
)
|
// rawSaleValue,
|
||||||
|
// outcome === 'YES' ? 'NO' : 'YES'
|
||||||
|
// )
|
||||||
|
|
||||||
const { pool } = contract
|
const { pool } = contract
|
||||||
const { YES: y, NO: n } = pool
|
const { YES: y, NO: n } = pool
|
||||||
|
|
Loading…
Reference in New Issue
Block a user