Skip to content

Commit 8b869a8

Browse files
authored
APR - Fix wnLOAZND APY (#2539)
1 parent d95bec1 commit 8b869a8

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

.changeset/many-pillows-explode.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'backend': patch
3+
---
4+
5+
APR - Fix wnLOAZND APY

config/monad.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,15 @@ export default <NetworkData>{
126126
name: 'wnloAZND',
127127
url: 'https://app.neverland.money/api/pool-apy',
128128
scale: 100,
129+
convert: async (baseAPY: number) => {
130+
const res = await (
131+
await fetch('https://app.neverland.money/api/pool-apy')
132+
).json();
133+
const externalAPY =
134+
(res as any).reserves['0x9c82eb49b51f7dc61e22ff347931ca32adc6cd90']
135+
.supply.externalAPY / 100;
136+
return baseAPY + externalAPY;
137+
},
129138
extractors: [
130139
{
131140
type: 'path',

0 commit comments

Comments
 (0)