Skip to content

Commit

Permalink
Ether.fi fix (llamafolio#1315)
Browse files Browse the repository at this point in the history
* ethers.fi_fix + comment NODE_ENV

* linter
  • Loading branch information
0xpeluche authored Feb 28, 2024
1 parent babfd34 commit f5564fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/adapters/ether.fi/ethereum/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { getNodeEtherFiBalances } from '@adapters/ether.fi/ethereum/node'
import type { AdapterConfig, Contract, GetBalancesHandler } from '@lib/adapter'
import { resolveBalances } from '@lib/balance'
import { getSingleStakeBalance } from '@lib/stake'
Expand All @@ -10,7 +9,7 @@ const manager: Contract = {
address: '0x3d320286E014C3e1ce99Af6d6B00f0C1D63E3000',
}

const nodeStaker: Contract = {
const _nodeStaker: Contract = {
chain: 'ethereum',
address: '0xb49e4420ea6e35f98060cd133842dbea9c27e479',
token: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
Expand Down Expand Up @@ -41,7 +40,8 @@ export const getContracts = () => {

export const getBalances: GetBalancesHandler<typeof getContracts> = async (ctx, contracts) => {
const balances = await resolveBalances<typeof getContracts>(ctx, contracts, {
manager: (...args) => getNodeEtherFiBalances(...args, nodeStaker),
// TODO: find the way to get user's tokenIds maybe from logs?
// manager: (...args) => getNodeEtherFiBalances(...args, nodeStaker),
staker: getEtherBalances,
weETH: getWeETHBalance,
eETH: getSingleStakeBalance,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function sendSlackMessage(
},
) {
const channel = environment.SLACK_CHANNEL_ID
if (!channel || environment.NODE_ENV !== 'production') {
if (!channel /* environment.NODE_ENV !== 'production'*/) {
return
}

Expand Down

0 comments on commit f5564fc

Please sign in to comment.