transfer-agent-protocol / tap-cap-table

Transfer agent protocol that's used for minting a cap table onchain.
https://transferagentprotocol.xyz
MIT License
17 stars 3 forks source link

Make decimal scaling more flexible #168

Closed apfong closed 6 months ago

apfong commented 6 months ago

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)