Skip to content

Commit

Permalink
fix: ASF strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
DevTeaLeaf committed Jan 31, 2025
1 parent 0ab9fbf commit 598a659
Show file tree
Hide file tree
Showing 12 changed files with 574 additions and 556 deletions.
70 changes: 40 additions & 30 deletions src/constants/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { chains } from "@stabilitydao/stability";
import { chains, integrations } from "@stabilitydao/stability";

import {
TABLE_FILTERS,
Expand Down Expand Up @@ -164,108 +164,118 @@ const DEFAULT_TRANSACTION_SETTINGS = {
};

const PROTOCOLS = {
quickSwap: {
quickswap: {
name: "QuickSwap",
logoSrc:
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/QuickSwap.svg",
},
}, // 1
gamma: {
name: "Gamma",
logoSrc:
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/Gamma.svg",
},
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/Gamma.png",
}, // 1
compound: {
name: "Compound",
logoSrc:
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/Compound.svg",
},
defiedge: {
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/Compound.png",
}, // 1
defiEdge: {
name: "DefiEdge",
logoSrc:
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/DefiEdge.svg",
},
}, // 1
merkl: {
name: "Merkl",
logoSrc:
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/Merkl.svg",
},
}, // 0
ichi: {
name: "Ichi",
logoSrc:
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/Ichi.svg",
},
}, // 1
retro: {
name: "Retro",
logoSrc:
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/Retro.svg",
},
}, // 1
curve: {
name: "Curve",
logoSrc:
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/Curve.svg",
},
}, // 1
convex: {
name: "Convex",
logoSrc:
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/Convex.svg",
},
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/Convex.png",
}, // 1
lido: {
name: "Lido",
logoSrc:
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/Lido.svg",
},
}, // 1
aave: {
name: "Aave",
logoSrc:
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/Aave.svg",
},
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/Aave.png",
}, // 1
stargate: {
name: "Stargate",
logoSrc:
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/Stargate.svg",
},
}, // 1
yearn: {
name: "Yearn",
logoSrc:
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/Yearn.svg",
},
}, // 1
uniswapV3: {
name: "UniswapV3",
logoSrc:
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/Uniswap.svg",
},
}, // 0
pearlV2: {
name: "Pearl V2",
logoSrc:
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/Pearl.png",
},
}, // 0
trident: {
name: "Trident",
logoSrc:
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/Trident.png",
},
}, // 0
beethovenx: {
name: "Beets",
logoSrc:
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/beethovenx.png",
},
}, // 1
equalizer: {
name: "Equalizer",
logoSrc:
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/equalizer.png",
},
}, // 1
swapx: {
name: "SwapX",
logoSrc:
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/swapx.png?1",
},
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/swapx.png",
}, // 1
shadow: {
name: 'Shadow',
name: "Shadow",
logoSrc:
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/shadow.png",
},
"https://raw.githubusercontent.com/stabilitydao/.github/main/assets/shadow.png",
}, // 1
};

// const _PROTOCOLS = Object.entries(integrations).reduce((acc, [key, value]) => {
// acc[key] = {
// name: value.name,
// logoSrc: `https://raw.githubusercontent.com/stabilitydao/.github/main/assets/${value.img}`,
// };
// return acc;
// }, {});
// console.log(PROTOCOLS);
// console.log(_PROTOCOLS);

const IL = {
ASFN: {
rate: 8,
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/AppStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -517,13 +517,13 @@ const AppStore = (props: React.PropsWithChildren): JSX.Element => {
case "aave":
yearnProtocols.push({
title: "Aave",
link: "https://raw.githubusercontent.com/stabilitydao/.github/main/assets/Aave.svg",
link: "https://raw.githubusercontent.com/stabilitydao/.github/main/assets/Aave.png",
});
break;
case "compound":
yearnProtocols.push({
title: "Compound",
link: "https://raw.githubusercontent.com/stabilitydao/.github/main/assets/Compound.svg",
link: "https://raw.githubusercontent.com/stabilitydao/.github/main/assets/Compound.png",
});
break;
case "stargate":
Expand Down
Loading

0 comments on commit 598a659

Please sign in to comment.