Skip to content

Commit

Permalink
pendle bsc
Browse files Browse the repository at this point in the history
  • Loading branch information
waynebruce0x committed Nov 27, 2024
1 parent 47ca02f commit 78a16f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion projects/pendle/v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ const config = {
"0x5ec2ae0afdec891e7702344dc2a31c636b3627eb",
"0x70c1138b54ba212776d3a9d29b6160c54c31cd5d",
"0x04eb6b56ff53f457c8e857ca8d4fbc8d9a531c0c",
"0x541b5eeac7d4434c8f87e2d32019d67611179606",
"0x5d1735b8e33bae069708cea245066de1a12cd38d"
],
},
optimism: {
Expand Down Expand Up @@ -118,7 +120,9 @@ Object.keys(config).forEach((chain) => {
});

data.forEach((v, i) => {
let value = supply[i] * 10 ** (v.decimals - decimals[i]);
let value = supply[i] * 10 ** (v.decimals -
(sy[i].toLowerCase() == '0x7b5a43070bd97c2814f0d8b3b31ed53450375c19' // case for vbnb
? 18 : decimals[i]));
let index = tokenAssetTypeSy.indexOf(sy[i]);
if (index !== -1) {
value = (value * exchangeRates[index]) / 10 ** 18;
Expand Down

0 comments on commit 78a16f9

Please sign in to comment.