File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -5,13 +5,16 @@ import type { PartialRecord } from "../../../core/utils";
55
66export 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
1720export const PROTOCOL = "midas" ;
You can’t perform that action at this time.
0 commit comments