Skip to content

Commit

Permalink
feat(interest): add deposit fees copy
Browse files Browse the repository at this point in the history
  • Loading branch information
schnogz committed May 27, 2020
1 parent a9898e0 commit 4dd19af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -641,8 +641,7 @@ type MessagesType = {
'modals.interest.deposit.calc': 'Interest Calculator'
'modals.interest.deposit.calcdesc': 'With {currencySymbol}{depositAmountFiat} in your Interest Account you can earn:'
'modals.interest.deposit.confirm': 'Confirm Deposit'
'modals.interest.deposit.agreement': 'By accepting this, you agree to transfer {depositAmountFiat} ({depositAmountCrypto}) from your Bitcoin Wallet to your Interest Account. An initial hold period of {lockupPeriod} days will be applied to your funds.'
'modals.interest.deposit.agreement.one': 'By accepting this, you agree to transfer {depositAmountFiat} ({depositAmountCrypto}) from your Bitcoin Wallet to your Interest Account. An initial hold period of one day will be applied to your funds.'
'modals.interest.deposit.agreement1': 'By accepting this, you agree to transfer {depositAmountFiat} ({depositAmountCrypto}) plus network fees from your Bitcoin Wallet to your Interest Account. An initial hold period of {lockupPeriod} days will be applied to your funds.'
'modals.interest.deposit.calcfooter': 'Estimates based on current interest rate and {coin} price.'
'modals.interest.deposit.calculator.tooltip': 'This is an estimate calculated using the current interest rate for the entire horizon. The actual interest rate is subject to change.'
'modals.interest.deposit.max': 'You cannot deposit more than {maxFiat}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -600,27 +600,15 @@ const DepositForm: React.FC<InjectedFormProps<{}, Props> & Props> = props => {
>
<AgreementContainer>
<Text lineHeight='1.4' size='14px' weight={500}>
{lockupPeriod === 1 ? (
<FormattedMessage
id='modals.interest.deposit.agreement.one'
defaultMessage='By accepting this, you agree to transfer {depositAmountFiat} ({depositAmountCrypto}) from your Bitcoin Wallet to your Interest Account. An initial hold period of one day will be applied to your funds.'
values={{
lockupPeriod,
depositAmountCrypto: `${depositAmountCrypto} ${coinTicker}`,
depositAmountFiat: `${currencySymbol}${depositAmountFiat}`
}}
/>
) : (
<FormattedMessage
id='modals.interest.deposit.agreement'
defaultMessage='By accepting this, you agree to transfer {depositAmountFiat} ({depositAmountCrypto}) from your Bitcoin Wallet to your Interest Account. An initial hold period of {lockupPeriod} days will be applied to your funds.'
values={{
lockupPeriod,
depositAmountCrypto: `${depositAmountCrypto} ${coinTicker}`,
depositAmountFiat: `${currencySymbol}${depositAmountFiat}`
}}
/>
)}
<FormattedMessage
id='modals.interest.deposit.agreement1'
defaultMessage='By accepting this, you agree to transfer {depositAmountFiat} ({depositAmountCrypto}) plus network fees from your Bitcoin Wallet to your Interest Account. An initial hold period of {lockupPeriod} days will be applied to your funds.'
values={{
lockupPeriod,
depositAmountCrypto: `${depositAmountCrypto} ${coinTicker}`,
depositAmountFiat: `${currencySymbol}${depositAmountFiat}`
}}
/>
</Text>
</AgreementContainer>
</Field>
Expand Down

0 comments on commit 4dd19af

Please sign in to comment.