diff --git a/src/common/modals/compositions/DepositModal.vue b/src/common/modals/compositions/DepositModal.vue index ea6de98..9552a03 100644 --- a/src/common/modals/compositions/DepositModal.vue +++ b/src/common/modals/compositions/DepositModal.vue @@ -14,6 +14,7 @@ class="deposit-modal__form" :pool-id="poolId" :min-stake="minStake" + :lock-end="claimLockEnd" @cancel="modal.close" @stake-tx-sent="modal.close" /> @@ -36,6 +37,7 @@ withDefaults( isShown: boolean poolId: number minStake: BigNumber + claimLockEnd: string isCloseByClickOutside?: boolean }>(), { diff --git a/src/forms/DepositForm.vue b/src/forms/DepositForm.vue index 8d1cbb7..6e0549e 100644 --- a/src/forms/DepositForm.vue +++ b/src/forms/DepositForm.vue @@ -119,6 +119,7 @@ const emit = defineEmits<{ const props = defineProps<{ poolId: number minStake: BigNumber + lockEnd: string }>() const uid = uuidv4() @@ -318,6 +319,14 @@ watch( { immediate: true }, ) +watch( + () => props.lockEnd, + () => { + form.lockPeriod = props.lockEnd + }, + { immediate: true }, +) + onMounted(() => { init() }) diff --git a/src/pages/HomePage/views/PublicPoolView.vue b/src/pages/HomePage/views/PublicPoolView.vue index 7156a90..53c533c 100644 --- a/src/pages/HomePage/views/PublicPoolView.vue +++ b/src/pages/HomePage/views/PublicPoolView.vue @@ -44,6 +44,7 @@ v-model:is-shown="isDepositModalShown" :pool-id="poolId" :min-stake="poolData.minimalStake" + :claim-lock-end="userPoolData?.claimLockEnd?.toString() ?? ''" />