From 6ef84dd7524ac60d0452a8b2a854647f863313fa Mon Sep 17 00:00:00 2001 From: leaperfinance <162426556+leaperfinance@users.noreply.github.com> Date: Mon, 8 Apr 2024 21:50:16 +0800 Subject: [PATCH] Add Leaper Finance (#9736) --- projects/LeaperFinance/index.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 projects/LeaperFinance/index.js diff --git a/projects/LeaperFinance/index.js b/projects/LeaperFinance/index.js new file mode 100644 index 000000000000..ecbee5999f0b --- /dev/null +++ b/projects/LeaperFinance/index.js @@ -0,0 +1,27 @@ +const { compoundExports2, } = require('../helper/compound') +const { stakings } = require("../helper/staking") +const { mergeExports } = require("../helper/utils") +const { yieldHelper, } = require("../helper/yieldHelper") + +const lend = compoundExports2({ comptroller: '0xB37e4151603bD0A83329CDB3F7AB0Ba608D2b9e4' }) + +const stake = '0x94C84CdA39fc7099d745Fea787b2e42BAe51B5a5' +const contract = '0x8B0eB5bD61c790E2CC6FB61a08210736ae66B462' +const token = '0x49cD19636855C00Dd0408C0C40e0951a41c4512A' +const abis = { + poolInfo: 'function poolInfo(uint256) view returns (address want, uint256 allocPoint, uint256 lastRewardTime, uint256 accSushiPerShare, uint256 amount, address strat)', +} + +const arbi_helper = yieldHelper({ + project: 'leaper-finance', + chain: 'blast', + masterchef: contract, + nativeToken: token, + abis, +}) + +module.exports = mergeExports([ + arbi_helper, + { blast: lend, }, + { blast: { staking: stakings([stake], token) }, } +])