Skip to content

Commit

Permalink
fix ethereum deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Yehor Podporinov authored and Yehor Podporinov committed Jun 12, 2024
1 parent e427b4f commit c398bd2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/forms/ContractCreationForm/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -206,17 +206,19 @@ const submitStep = async () => {
poolsInfo: form.value.ethereumConfig.groups.map(group => ({
payoutStart: group.payoutStartAt,
decreaseInterval: group.decreaseInterval,
claimLockPeriod: Math.round(Number(group.claimLockPeriod) / 3600),
claimLockPeriod: Math.round(Number(group.claimLockPeriod) * 3600),
initialReward: parseUnits(group.initialReward, 'ether'),
rewardDecrease: parseUnits(group.rewardDecrease, 'ether'),
isPublic: group.isPublic,
withdrawLockPeriod: group.isPublic
? Math.round(Number(group.withdrawLockPeriod) * 60)
? Math.round(Number(group.withdrawLockPeriod) * 3600)
: 0,
withdrawLockPeriodAfterStake: group.isPublic
? Math.round(Number(group.withdrawLockPeriodAfterStake) * 60)
? Math.round(Number(group.withdrawLockPeriodAfterStake) * 3600)
: 0,
minimalStake: group.isPublic
? parseUnits(group.minimalStake, 'ether')
: 0,
minimalStake: group.isPublic ? group.minimalStake : 0,
})),
})
Expand Down

0 comments on commit c398bd2

Please sign in to comment.