Skip to content

Commit

Permalink
Minor Change
Browse files Browse the repository at this point in the history
  • Loading branch information
asim07 committed Mar 12, 2024
1 parent f603364 commit c7df496
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
17 changes: 16 additions & 1 deletion src/strategies/stake-mine-liquid-helios/examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,22 @@
"addresses": [
"0x362aC45CfcB7970876eBE9C40358448C16DBCAfC",
"0xb778d98a2C966873D6B0Bc75aC8744e90bCf93d5",
"0x86B63808E1361e1F3e526838b2340501E6fd990A"
"0x86B63808E1361e1F3e526838b2340501E6fd990A",
"0x22E91b096E3732C9Dc343e39d78c03A21b41EC34",
"0xFB89446dA803185dAf457a1CBA9f4F61c288B59a",
"0x999C89A2C5E7EF834C99D3F1c68059580bf29AdD",
"0x13C44b1FCEE99f396fA1CD77E6A5272bDD6cC559",
"0xBe474903F17C769fcFfB81c1Aeb830AE67142D91",
"0x79841213Ec3343cB63769b34f97e77108fC4232D",
"0x15E5B9B9Adf208cC7CA3aE1e6a49506eB5f397Dd",
"0xb0d1A98b4669eC986DB27f925b85A951A390Ca42",
"0x8764633f85F18dB033Ae7EA4A9C9812E4020CE4F",
"0x35E900026018aE6Da90d9f7d7122d05aD9de57c4",
"0x1A70d7CB0D232f50aCaC5C45F94310BAe993ee6D",
"0x8cdE74df83bf46c5d410f0938bc51ba54554b61F",
"0xD50C50D2c8Fa127c1fa36B6a628af5A82d6bB0d3",
"0xdE7Da75ac2D367379DE565C928D447dC5e385f2C",
"0x3E82555Af4f5908487969E40cCAF9081B74e23c9"
],
"snapshot": 19381155
}
Expand Down
13 changes: 6 additions & 7 deletions src/strategies/stake-mine-liquid-helios/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { multicall } from '../../utils';
import { BigNumber } from '@ethersproject/bignumber';
import { BigNumberish } from '@ethersproject/bignumber';

export const author = 'bonustrack';
export const version = '0.1.1';
export const author = 'asim07';
export const version = '0.1.0';

const abi = [
'function balanceOf(address account) external view returns (uint256)',
Expand All @@ -13,10 +13,9 @@ const abi = [
];

enum MintStatus {
// Add your status values here, for example:
Active,
Matured
// etc.
ACTIVE,
CLAIMED,
BURNED
}

interface UserMintInfo {
Expand Down Expand Up @@ -87,7 +86,7 @@ export async function strategy(
mints.reduce((sum, mint) => {
// Extract mintableHlx, ensure mint[3] is defined and mint[3][2] is not undefined
const mintableHlx =
mint[3] && mint[3][2] !== undefined
mint[3] && mint[3][2] !== undefined && parseInt(mint[3][11]) === 0
? parseFloat(formatUnits(mint[3][2], decimals))
: 0;
return sum + mintableHlx; // Sum mintableHlx for this mint to the total for the current user's mints
Expand Down

0 comments on commit c7df496

Please sign in to comment.