Skip to content

Commit

Permalink
feat: moved a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
SissonJ committed Apr 4, 2024
1 parent 6e1a58c commit 2d5dc78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/contracts/services/shadeStaking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import {
StakingInfoServiceModel,
} from '~/types/contracts/shadeStaking/index';

// data returned from the contract in normalized form with
// 18 decimals, in addition to any decimals on the individual token
const NORMALIZATION_FACTOR = 18;

/**
Expand All @@ -30,8 +32,6 @@ function parseStakingOpportunity(data: StakingInfoServiceResponse): StakingInfoS
startDate: new Date(Number(reward.start) * 1000),
endDate: new Date(Number(reward.end) * 1000),
tokenAddress: reward.token.address,
// data returned from the contract in normalized form with
// 18 decimals, in addition to any decimals on the individual token
rateRaw: convertCoinFromUDenom(reward.rate, NORMALIZATION_FACTOR).toString(),
}));
return {
Expand Down

0 comments on commit 2d5dc78

Please sign in to comment.