Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated lint #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 5 additions & 14 deletions src/strategies/glide/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const vault_abi = [
];

const dividend_abi = [
'function userInfo(address) view returns (uint256 amount, uint256 rewardDebt)',
'function userInfo(address) view returns (uint256 amount, uint256 rewardDebt)'
];

export async function strategy(
Expand Down Expand Up @@ -53,14 +53,10 @@ export async function strategy(
multi1.call(`lp2.${address}`, LP2_TOKEN, 'balanceOf', [address]);
});
addresses.forEach((address: any) => {
multi2.call(`autoStaking.${address}`, GLIDE_VAULT, 'userInfo', [
address
]);
multi2.call(`autoStaking.${address}`, GLIDE_VAULT, 'userInfo', [address]);
});
addresses.forEach((address: any) => {
multi3.call(`feeStaking.${address}`, DIVIDEND_POOL, 'userInfo', [
address
]);
multi3.call(`feeStaking.${address}`, DIVIDEND_POOL, 'userInfo', [address]);
});

multi1.call(`lp1.totalSupply`, LP1_TOKEN, 'totalSupply', []);
Expand All @@ -77,12 +73,7 @@ export async function strategy(
addresses.map((address) => [
address,
// GLIDE in wallet
parseFloat(
formatUnits(
result1.glide[address],
18
)
) +
parseFloat(formatUnits(result1.glide[address], 18)) +
// GLIDE-ELA LP in farm
parseFloat(
formatUnits(
Expand Down Expand Up @@ -136,7 +127,7 @@ export async function strategy(
.mul(result2.autoStaking.shares)
.div(precision)
)
) +
) +
// GLIDE in fee staking
parseFloat(formatUnits(result3.feeStaking[address][0], 18))
])
Expand Down