Skip to content

Commit 6aae3fc

Browse files
Adds Harbor Market (DefiLlama#8957)
1 parent eb488af commit 6aae3fc

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

projects/harbor/index.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const sdk = require("@defillama/sdk");
2+
const { aaveChainTvl } = require('../helper/aave');
3+
4+
function v2(chain, v2Registry){
5+
const section = borrowed => sdk.util.sumChainTvls([
6+
aaveChainTvl(chain, v2Registry, undefined, undefined, borrowed),
7+
])
8+
return {
9+
tvl: section(false),
10+
borrowed: section(true)
11+
}
12+
}
13+
14+
module.exports = {
15+
bsc: v2("bsc", "0x31406A8c12813b64bF9985761BA51412B92fFb4E"),
16+
}

0 commit comments

Comments
 (0)