Skip to content

Commit 93449d2

Browse files
authored
Seedify, Embr Bridge (DefiLlama#15379)
1 parent 75fa0ec commit 93449d2

File tree

2 files changed

+115
-24
lines changed

2 files changed

+115
-24
lines changed

projects/embr-bridge/index.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
const { get } = require('../helper/http.js');
2+
3+
const url = "https://rest-embrmainnet-1.anvil.asia-southeast.initia.xyz/cosmos/bank/v1beta1/supply"
4+
5+
const assetMap = {
6+
"evm/4f7566f67941283a30cf65de7b9c6fdf2c04FCA1": {
7+
decimals: 18, id: "initia",
8+
},
9+
}
10+
11+
module.exports = {
12+
timetravel: false,
13+
initia: {
14+
tvl: async () => {
15+
const balances = {}
16+
const res = await get(url)
17+
18+
res.supply.map(({ denom, amount }) => {
19+
if (!assetMap[denom]) return
20+
const { decimals, id } = assetMap[denom]
21+
balances[id] = amount / 10 ** decimals
22+
})
23+
24+
return balances
25+
},
26+
},
27+
};

projects/seedify/index.js

Lines changed: 88 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,97 @@
11
const { pool2 } = require("../helper/pool2");
22
const { stakings } = require("../helper/staking");
33

4-
const SFUND = "0x477bC8d23c634C154061869478bce96BE6045D12";
4+
const SFUND = {
5+
bsc: "0x477bC8d23c634C154061869478bce96BE6045D12",
6+
arbitrum: "0x560363bda52bc6a44ca6c8c9b4a5fadbda32fa60",
7+
ethereum: "0x560363bda52bc6a44ca6c8c9b4a5fadbda32fa60"
8+
}
9+
510
const pool2Token = "0x74fa517715c4ec65ef01d55ad5335f90dce7cc87";
611
const pool2Holder = "0x1F10564BAD9367CfF4247A138eBbA9a9aaeb789E";
712

8-
const stakingContracts = [
9-
{
10-
address: '0xb667c499b88AC66899E54e27Ad830d423d9Fba69', // 7day
11-
token: SFUND
12-
}, {
13-
address: '0x027fC3A49383D0E7Bd6b81ef6C7512aFD7d22a9e', // 14day
14-
token: SFUND
15-
}, {
16-
address: '0x8900475BF7ed42eFcAcf9AE8CfC24Aa96098f776', // 30day
17-
token: SFUND
18-
}, {
19-
address: '0x66b8c1f8DE0574e68366E8c4e47d0C8883A6Ad0b', // 60day
20-
token: SFUND
21-
}, {
22-
address: '0x5745b7E077a76bE7Ba37208ff71d843347441576', // 90day
23-
token: SFUND
24-
},
25-
];
13+
const stakingContracts = {
14+
bsc: [
15+
{
16+
address: '0xb667c499b88AC66899E54e27Ad830d423d9Fba69', // 7day
17+
token: SFUND
18+
}, {
19+
address: '0x027fC3A49383D0E7Bd6b81ef6C7512aFD7d22a9e', // 14day
20+
token: SFUND
21+
}, {
22+
address: '0x8900475BF7ed42eFcAcf9AE8CfC24Aa96098f776', // 30day
23+
token: SFUND
24+
}, {
25+
address: '0x66b8c1f8DE0574e68366E8c4e47d0C8883A6Ad0b', // 60day
26+
token: SFUND
27+
}, {
28+
address: '0x5745b7E077a76bE7Ba37208ff71d843347441576', // 90day
29+
token: SFUND
30+
},
31+
{
32+
address: '0xf420f0951f0f50f50c741f6269a4816985670054', // 180day
33+
token: SFUND
34+
},
35+
{
36+
address: '0x60b9f788f4436f0b5c33785b3499b2ee1d8dbfd4', // 30day
37+
token: SFUND
38+
}, {
39+
address: '0x5b384955ac3460c996402bf03736624a33e55273', // 90day
40+
token: SFUND
41+
}, {
42+
address: '0xd01650999bb5740f9bb41168401e9664b28ff47f', // 180day
43+
token: SFUND
44+
}, {
45+
address: '0x89aaab217272c89da91825d9effbe65ded384859', // 270day
46+
token: SFUND
47+
}, {
48+
address: '0x71d058369d39a8488d8e9f5fd5b050610ca788c0', // FARM
49+
token: SFUND
50+
},
51+
],
52+
arbitrum: [
53+
{
54+
address: '0x1d22275d58a836f8307c306110deafe22e360877', // 30day
55+
token: SFUND
56+
}, {
57+
address: '0xaae4355b30e18879a12e4e22283da901af47d6cd', // 90day
58+
token: SFUND
59+
}, {
60+
address: '0x9f07a4cf035f14c0160db2d7d94eb5a41f114805', // 180day
61+
token: SFUND
62+
}, {
63+
address: '0xc30be140f8ada0fdb0c97377c98ddbe8b343679a', // 270day
64+
token: SFUND
65+
}, {
66+
address: '0xc30be140f8ada0fdb0c97377c98ddbe8b343679a', // FARM
67+
token: SFUND
68+
}
69+
],
70+
ethereum:[
71+
{
72+
address: '0x1d22275d58a836f8307c306110deafe22e360877', // 30day
73+
token: SFUND
74+
}, {
75+
address: '0xbcc572d3f2f619b082794a96a848a23c2a752fcf', // 90day
76+
token: SFUND
77+
}, {
78+
address: '0x453bbf5ad5011a89390a1e96042a19d5f4892754', // 180day
79+
token: SFUND
80+
}, {
81+
address: '0x569399bfca76e7664cec6510adc75f2811be2c5c', // 270day
82+
token: SFUND
83+
}, {
84+
address: '0x92572249d487a99c0ed746ee36aaf22a66c4ab67', // FARM
85+
token: SFUND
86+
},
87+
]
88+
};
2689

27-
module.exports = {
28-
bsc: {
90+
module.exports = {}
91+
Object.keys(stakingContracts).forEach(chain => {
92+
module.exports[chain] = {
2993
tvl: () => ({}),
30-
pool2: pool2(pool2Holder, pool2Token),
31-
staking: stakings(stakingContracts.map(i => i.address), SFUND)
94+
pool2: chain === "bsc" ? pool2(pool2Holder, pool2Token) : () => ({}),
95+
staking: stakings(stakingContracts[chain].map(i => i.address), SFUND[chain])
3296
}
33-
};
97+
});

0 commit comments

Comments
 (0)