Skip to content

Commit 36f3647

Browse files
authored
Merge pull request #75 from de-snake/patch-4
feat: add mEDGE apy
2 parents 9f23a00 + cf5e118 commit 36f3647

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

src/tokens/apy/midas/apy.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ const getAPYMidas: APYHandler = async network => {
7272
const mBASISRate = data?.mbasis || 0;
7373
const mTBILLRate = data?.mtbill || 0;
7474
const mRe7YIELDRate = data?.mre7 || 0;
75+
const mEDGERate = data?.medge || 0;
7576

7677
const result: APYResult = {};
7778

@@ -123,6 +124,22 @@ const getAPYMidas: APYHandler = async network => {
123124
};
124125
}
125126

127+
if (tokens?.mEDGE) {
128+
result[tokens.mEDGE] = {
129+
address: tokens.mEDGE,
130+
symbol: "mEDGE",
131+
132+
apys: [
133+
{
134+
address: tokens.mEDGE,
135+
symbol: "mEDGE",
136+
protocol: PROTOCOL,
137+
value: Number(mEDGERate) * 100,
138+
},
139+
],
140+
};
141+
}
142+
126143
return result;
127144
};
128145

src/tokens/apy/midas/constants.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ import type { PartialRecord } from "../../../core/utils";
55

66
export const TOKENS: PartialRecord<
77
NetworkType,
8-
{ mBASIS?: Address; mTBILL?: Address; mRe7YIELD?: Address }
8+
{ mBASIS?: Address; mTBILL?: Address; mRe7YIELD?: Address; mEDGE?: Address }
99
> = {
1010
Etherlink: {
1111
mTBILL: "0xdd629e5241cbc5919847783e6c96b2de4754e438",
1212
mBASIS: "0x2247b5a46bb79421a314ab0f0b67ffd11dd37ee4",
1313
mRe7YIELD: "0x733d504435a49fc8c4e9759e756c2846c92f0160",
1414
},
15+
Monad: {
16+
mEDGE: "0x1c8eE940B654bFCeD403f2A44C1603d5be0F50Fa",
17+
},
1518
};
1619

1720
export const PROTOCOL = "midas";

0 commit comments

Comments
 (0)