Skip to content

Commit abcffff

Browse files
authored
Copy updates (#984)
Closes ACR-94, ACR-86
2 parents b3539d2 + 7050a69 commit abcffff

4 files changed

Lines changed: 21 additions & 41 deletions

File tree

dapp/src/components/Vaults.tsx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
Tbody,
1515
Td,
1616
Text,
17-
Tfoot,
1817
Th,
1918
Thead,
2019
Tr,
@@ -46,7 +45,7 @@ function VaultsRoot(props: VaultsRootProps) {
4645
return (
4746
<Card {...restProps}>
4847
<CardHeader as={Text} size="md" mb={3}>
49-
Acre Vaults
48+
Acre Bitcoin Vault
5049
</CardHeader>
5150

5251
<CardBody as={TableContainer}>
@@ -65,7 +64,7 @@ function VaultsRoot(props: VaultsRootProps) {
6564
<Th>Portfolio weight</Th>
6665
<Th>APR</Th>
6766
<Th>TVL</Th>
68-
<Th>Curator</Th>
67+
<Th>Risk Manager</Th>
6968
</Tr>
7069
</Thead>
7170

@@ -129,7 +128,7 @@ function Vaults(props: VaultsRootProps) {
129128
{
130129
provider: "tbtc",
131130
portfolioWeight: 1,
132-
apr: 0.09,
131+
apr: 0.14,
133132
tvl: statistics.data.tvl.usdValue,
134133
curator: "re7",
135134
},
@@ -203,12 +202,6 @@ function Vaults(props: VaultsRootProps) {
203202
)
204203
})}
205204
</Tbody>
206-
207-
<Tfoot>
208-
<Tr>
209-
<Td colSpan={5}>More vaults coming soon</Td>
210-
</Tr>
211-
</Tfoot>
212205
</VaultsRoot>
213206
)
214207
}

dapp/src/components/WelcomeModal.tsx

Lines changed: 15 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { ReactElement } from "react"
1+
import React from "react"
22
import {
33
Button,
44
ModalBody,
@@ -15,32 +15,15 @@ import {
1515
Highlight,
1616
Text,
1717
} from "@chakra-ui/react"
18-
import { BaseModalProps, DappMode } from "#/types"
19-
import { EmbedApp } from "#/utils/referralProgram"
20-
import { useIsEmbed, useMobileMode } from "#/hooks"
18+
import { BaseModalProps } from "#/types"
19+
import { useMobileMode } from "#/hooks"
2120
import {
2221
step1Video,
2322
step2Video,
2423
step3Video,
2524
} from "#/assets/videos/welcome-steps"
2625
import withBaseModal from "./ModalRoot/withBaseModal"
2726

28-
const dappModeToContent: Record<DappMode, () => ReactElement> = {
29-
standalone: () => (
30-
<>
31-
Acre makes earning rewards with your BTC simple and secure. Dedicated to
32-
everyone, it&apos;s fun and easy to use. No advanced knowledge required.
33-
</>
34-
),
35-
"ledger-live": () => (
36-
<Highlight query="Ledger Live">
37-
Acre makes earning rewards with your BTC simple and secure. Tailored for
38-
Ledger Live, it&apos;s fun and easy to use. No advanced knowledge
39-
required.
40-
</Highlight>
41-
),
42-
}
43-
4427
const steps = [
4528
{
4629
id: 0,
@@ -52,9 +35,14 @@ const steps = [
5235
</Box>
5336
</Text>
5437
),
55-
content: (embeddedApp?: EmbedApp) =>
56-
dappModeToContent[embeddedApp ?? "standalone"](),
57-
38+
content: () => (
39+
<>
40+
When you deposit BTC, Acre&apos;s dispatcher routes it into audited,
41+
risk-reviewed vaults run by independent risk managers. Your bitcoin
42+
stays under your control while it compounds on-chain. Simple, secure,
43+
transparent.
44+
</>
45+
),
5846
video: step1Video,
5947
},
6048
{
@@ -87,9 +75,9 @@ const steps = [
8775
),
8876
content: () => (
8977
<Highlight query="Acre Points Program">
90-
As a depositor, you&apos;re automatically in the Acre Points Program.
91-
Enjoy daily points drops and exclusive partner rewards. Start stacking
92-
those points!
78+
Deposit BTC to start earning. Monitor your position, review the vaults,
79+
earn with the Acre Points Program automatically, and redeem back into
80+
Bitcoin at any time. Your bitcoin, on-chain, working for you.
9381
</Highlight>
9482
),
9583
video: step3Video,
@@ -122,7 +110,6 @@ function WelcomeModalBase({ closeModal }: BaseModalProps) {
122110
index: 0,
123111
count: steps.length,
124112
}) as UseStepsReturn & { goToNext: () => void }
125-
const { embeddedApp } = useIsEmbed()
126113
const isMobileMode = useMobileMode()
127114

128115
const isLastStep = activeStep + 1 === steps.length
@@ -138,7 +125,7 @@ function WelcomeModalBase({ closeModal }: BaseModalProps) {
138125
{activeStepData.title}
139126
</ModalHeader>
140127
<ModalBody textAlign="left" display="block" color="text.secondary">
141-
{activeStepData.content(embeddedApp)}
128+
{activeStepData.content()}
142129
</ModalBody>
143130
<ModalFooter
144131
display="flex"

dapp/src/constants/externalHref.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ export default {
88
TERMS_OF_USE: "https://acre.fi/terms-of-use",
99
PRIVACY_POLICY: "https://acre.fi/privacy-policy",
1010
X: "https://x.com/AcreBTC",
11-
MIDAS: "https://midas.app/", // TODO
11+
RE7: "https://www.re7labs.xyz/",
1212
}

dapp/src/constants/vaults.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import externalHref from "./externalHref"
33

44
const VAULT_PROVIDERS = {
55
tbtc: {
6-
label: "tBTC DeFi Vault",
6+
label: "Market-Neutral BTCFi Vault",
77
icon: TbtcIcon,
88
},
99
}
1010

1111
const VAULT_CURATORS = {
1212
re7: {
1313
label: "Re7",
14-
url: externalHref.MIDAS,
14+
url: externalHref.RE7,
1515
},
1616
}
1717

0 commit comments

Comments
 (0)