You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Total surplus for the 0xd16F39990092033EE2faB400Bf3364379c616c4E user is wrong on mainnet prod.
DB query returns 589477720296680500000.
More specifically, the total surplus for order 7cd8a08e is 589 ETH, which is not true.
The issue is in the SQL query since 1e18 denominator is used, while NEAR token has 1e24.
Impact
The wrong value is shown on the UI for all users that have a trade with NEAR token(or any other with a denominator different from 1e18).
To reproduce
Make an order with NEAR token.
Expected behavior
A correct value is returned.
Version / commit hash: v2.259.0
Environment: mainnet-prod
The text was updated successfully, but these errors were encountered:
Problem
Total surplus for the
0xd16F39990092033EE2faB400Bf3364379c616c4E
user is wrong on mainnet prod.DB query returns
589477720296680500000
.More specifically, the total surplus for order 7cd8a08e is 589 ETH, which is not true.
The issue is in the SQL query since
1e18
denominator is used, while NEAR token has1e24
.Impact
The wrong value is shown on the UI for all users that have a trade with NEAR token(or any other with a denominator different from 1e18).
To reproduce
Make an order with NEAR token.
Expected behavior
A correct value is returned.
Version / commit hash: v2.259.0
Environment: mainnet-prod
The text was updated successfully, but these errors were encountered: