Skip to content

Commit

Permalink
SOV-2777: new team vesting type (#2563)
Browse files Browse the repository at this point in the history
feat: add team vestings
  • Loading branch information
soulBit authored Jul 18, 2023
1 parent 309d141 commit 686ed06
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/app/components/UserAssets/Vesting/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export type VestGroup =
| 'team'
| 'reward'
| 'fouryear'
| 'teamFouryear'
| 'fish'
| 'fishAirdrop';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ export function useListOfUserVestings(asset?: Asset) {
address.map(
async (item, index): Promise<Vesting> => {
// 'type' can be 0 or 1, 0 - Team Vesting, 1 - Vesting, fish, fishAirdrop
// 'typeCreation' can be 1-4 representing Vesting Registry 1-4
// 'typeCreation' can be 1-5 representing Vesting Registry 1-5
const label = {
'0 1': 'team',
'0 5': 'teamFouryear',
'1 1': 'genesis',
'1 2': 'origin',
'1 3': 'reward',
Expand All @@ -74,14 +75,14 @@ export function useListOfUserVestings(asset?: Asset) {
? Asset.FISH
: Asset.SOV;

const regystryType =
const registryType =
typeCreation[index] === 'vestingRegistryFISH'
? 'FISH_staking'
: 'staking';

return {
asset: assetType,
staking: regystryType,
staking: registryType,
type: label,
typeCreation: typeCreation[index],
vestingContract: address[index],
Expand Down
1 change: 1 addition & 0 deletions src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,7 @@
"origin": "Origin SOV",
"team": "Team SOV",
"fouryear": "Four-Year Vested SOV",
"teamFouryear": "Team Vesting",
"reward": "Reward SOV",
"fish": "Origins FISH",
"fishAirdrop": "Airdrop FISH"
Expand Down

0 comments on commit 686ed06

Please sign in to comment.