Skip to content

Commit

Permalink
split adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Jun 17, 2024
1 parent 67c264f commit 5fb4dc9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 23 deletions.
7 changes: 7 additions & 0 deletions projects/netweave-lending/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const { compoundExports2 } = require("../helper/compound");

module.exports = {
mode: compoundExports2({
comptroller: '0x86112d3176c537B953560EA6fE43f79382E7bffE',
})
}
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
const { compoundExports2 } = require("../helper/compound");
const { mergeExports } = require("../helper/utils")
const { yieldHelper } = require("../helper/yieldHelper")

const weave_lending = compoundExports2({
comptroller: '0x86112d3176c537B953560EA6fE43f79382E7bffE',
})

const vault = '0x28d46E6A97273865561142124056eb3243568d3C'
const abis = {
poolInfo: 'function poolInfo(uint256) view returns (address want, uint256 allocPoint, uint256 lastRewardTime, uint256 accSushiPerShare, uint256 amount, address strat)',
}
const weave_vault = yieldHelper({
project: 'NetWeave',
chain: 'mode',
masterchef: vault,
abis,
})

module.exports = mergeExports([
{ mode: weave_lending },
weave_vault,
])
const { yieldHelper } = require("../helper/yieldHelper")

const vault = '0x28d46E6A97273865561142124056eb3243568d3C'
const abis = {
poolInfo: 'function poolInfo(uint256) view returns (address want, uint256 allocPoint, uint256 lastRewardTime, uint256 accSushiPerShare, uint256 amount, address strat)',
}
module.exports = yieldHelper({
project: 'NetWeave',
chain: 'mode',
masterchef: vault,
abis,
})

0 comments on commit 5fb4dc9

Please sign in to comment.