Skip to content

Commit

Permalink
fix: participant counts of legacy pool markets (#3592)
Browse files Browse the repository at this point in the history
  • Loading branch information
therealemjy authored Dec 3, 2024
1 parent 2112a4c commit 108acf5
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 65 deletions.
5 changes: 5 additions & 0 deletions .changeset/famous-cycles-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@venusprotocol/evm": patch
---

fix participant counts of legacy pool markets
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ exports[`getLegacyPool > returns core pool in the correct format 1`] = `
"type": "rewardDistributor",
},
],
"borrowerCount": 0,
"borrowerCount": 438,
"cashTokens": "1.00000000080503544824460983238917793784e+21",
"collateralFactor": 0,
"disabledTokenActions": [
Expand All @@ -34,7 +34,7 @@ exports[`getLegacyPool > returns core pool in the correct format 1`] = `
"liquidityCents": "1.000006200805040439464388948970138750743214608e+23",
"reserveFactor": 1,
"reserveTokens": "0",
"supplierCount": 0,
"supplierCount": 933,
"supplyApyPercentage": "0",
"supplyBalanceCents": "1.000006201051670556767362816225462034303610544746e+23",
"supplyBalanceTokens": "1.00000000105166403645033682413715238395883e+21",
Expand Down Expand Up @@ -90,7 +90,7 @@ exports[`getLegacyPool > returns core pool in the correct format 1`] = `
"type": "rewardDistributor",
},
],
"borrowerCount": 0,
"borrowerCount": 35,
"cashTokens": "0",
"collateralFactor": 0.8,
"disabledTokenActions": [],
Expand All @@ -99,7 +99,7 @@ exports[`getLegacyPool > returns core pool in the correct format 1`] = `
"liquidityCents": "0",
"reserveFactor": 0.1,
"reserveTokens": "21.269535066688975633",
"supplierCount": 0,
"supplierCount": 25,
"supplyApyPercentage": "11.434048167920574",
"supplyBalanceCents": "3716729453.6129492577232450137",
"supplyBalanceTokens": "15115.4767135290690422233",
Expand Down Expand Up @@ -156,7 +156,7 @@ exports[`getLegacyPool > returns core pool in the correct format 1`] = `
"type": "rewardDistributor",
},
],
"borrowerCount": 0,
"borrowerCount": 263,
"cashTokens": "5.556233762724731858",
"collateralFactor": 0.8,
"disabledTokenActions": [],
Expand All @@ -165,7 +165,7 @@ exports[`getLegacyPool > returns core pool in the correct format 1`] = `
"liquidityCents": "291731.6894670817923653489952",
"reserveFactor": 0.25,
"reserveTokens": "187487.447405339178551222",
"supplierCount": 0,
"supplierCount": 923,
"supplyApyPercentage": "157.57792083092227",
"supplyBalanceCents": "44362974574.359412320127072323564288",
"supplyBalanceTokens": "844923.83256419589412162352",
Expand Down Expand Up @@ -222,7 +222,7 @@ exports[`getLegacyPool > returns core pool in the correct format 1`] = `
"type": "rewardDistributor",
},
],
"borrowerCount": 0,
"borrowerCount": 68,
"cashTokens": "2259657.074761148481496107",
"collateralFactor": 0.6,
"disabledTokenActions": [],
Expand All @@ -231,7 +231,7 @@ exports[`getLegacyPool > returns core pool in the correct format 1`] = `
"liquidityCents": "1444669788.91666196711723462774301",
"reserveFactor": 0.25,
"reserveTokens": "0",
"supplierCount": 0,
"supplierCount": 274,
"supplyApyPercentage": "1.8360754649567212",
"supplyBalanceCents": "1711197065.9464062401284554003137589",
"supplyBalanceTokens": "2676541.43946341921611527123",
Expand Down Expand Up @@ -287,7 +287,7 @@ exports[`getLegacyPool > returns core pool in the correct format 1`] = `
"type": "rewardDistributor",
},
],
"borrowerCount": 0,
"borrowerCount": 249,
"cashTokens": "1.0000736633870942814396398228131475074669e+34",
"collateralFactor": 0.8,
"disabledTokenActions": [],
Expand All @@ -296,7 +296,7 @@ exports[`getLegacyPool > returns core pool in the correct format 1`] = `
"liquidityCents": "1.000036490649026183145198711400933542774047455327e+36",
"reserveFactor": 0.1,
"reserveTokens": "0",
"supplierCount": 0,
"supplierCount": 670,
"supplyApyPercentage": "0",
"supplyBalanceCents": "1.00003649064902618314530970887489046343322854178897705712904885e+36",
"supplyBalanceTokens": "1.000073663387094281439750824413033895903139261475326095e+34",
Expand Down Expand Up @@ -352,7 +352,7 @@ exports[`getLegacyPool > returns core pool in the correct format 1`] = `
"type": "rewardDistributor",
},
],
"borrowerCount": 0,
"borrowerCount": 229,
"cashTokens": "1.010176805025969148511141552e+21",
"collateralFactor": 0.81,
"disabledTokenActions": [],
Expand All @@ -361,7 +361,7 @@ exports[`getLegacyPool > returns core pool in the correct format 1`] = `
"liquidityCents": "1.01015151019877129824366283301553792e+23",
"reserveFactor": 0.1,
"reserveTokens": "0",
"supplierCount": 0,
"supplierCount": 534,
"supplyApyPercentage": "2.7328805884e-8",
"supplyBalanceCents": "1.0101515258227468345608256850251328456045167117888e+23",
"supplyBalanceTokens": "1.01017682065033591897223674983334867265528e+21",
Expand Down
Loading

0 comments on commit 108acf5

Please sign in to comment.