Modify toDecimal to optionally take in a currency. If the currency is USD then we scale by the USDC decimals instead of the internal TAP decimals.
Remove custom gasPrice and gasLimit as that was breaking shareholder creation in some chain deployments
Why?
When processing transactions, the current logic will interpret share prices stored in on-chain transactions as being in TAP internal decimals of 1e10. This means that if the share price for a trade is $1.30 the value will show up as .00013 in mongo instead of 1.3
What?
Modify
toDecimal
to optionally take in a currency. If the currency is USD then we scale by the USDC decimals instead of the internal TAP decimals.Remove custom gasPrice and gasLimit as that was breaking shareholder creation in some chain deployments
Why?
When processing transactions, the current logic will interpret share prices stored in on-chain transactions as being in TAP internal decimals of 1e10. This means that if the share price for a trade is $1.30 the value will show up as .00013 in mongo instead of 1.3
Screenshots (optional)