OriginProtocol / ousd-analytics

Web application to pull statistics on OUSD from the blockchain.
8 stars 3 forks source link

Wrong OETH balance on whale mint #347

Open micahalcorn opened 1 year ago

micahalcorn commented 1 year ago

I thought at first that this might be an instance of https://github.com/OriginProtocol/origin-dollar/issues/1418, but I don't think that one applies to large amounts. So I'm not sure if this issue is related to the dapp or analytics

0xc055De577ce2039E6D35621E3a885df9Bb304AB9 deposited 495 ETH, which was zapped to 495 WETH to mint 495 OETH according to Etherscan. The first entry in /history shows a "swap" of 495 and a resulting OETH balance of 494.995975.

Update It appears that this issue stems from analytics.

https://analytics.ousd.com/api/v2/oeth/address/0xc055de577ce2039e6d35621e3a885df9bb304ab9/history?per_page=67&page=3

Screenshot 2023-06-02 at 3 57 52 PM