Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: rebrand to ibtc #218

Merged
merged 2 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DLC.Link - dlcBTC Bridge
# DLC.Link - iBTC Bridge

**dlcBTC Website** is an interface for interacting with DLC.Link smart contracts and the Bitcoin blockchain. This platform provides a secure and efficient self-custodial way to lock Bitcoin as collateral and mint dlcBTC tokens based on the amount of Bitcoin locked.
**iBTC Website** is an interface for interacting with DLC.Link smart contracts and the Bitcoin blockchain. This platform provides a secure and efficient self-custodial way to lock Bitcoin as collateral and mint iBTC tokens based on the amount of Bitcoin locked.

## Installation

Expand Down
2 changes: 1 addition & 1 deletion config.devnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{
"name": "DLC.Link",
"addresses": ["0x0DD4f29E21F10cb2E485cf9bDAb9F2dD1f240Bfa"],
"logo": "/images/logos/dlcBTC-logotype.svg"
"logo": "/images/logos/ibtc-logotype.svg"
},
{
"name": "Smart Bitcoin Labs",
Expand Down
2 changes: 1 addition & 1 deletion config.localhost.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"name": "DLC.Link",
"addresses": ["0x0DD4f29E21F10cb2E485cf9bDAb9F2dD1f240Bfa"],
"logo": "/images/logos/dlcBTC-logotype.svg"
"logo": "/images/logos/ibtc-logotype.svg"
}
],
"protocols": [
Expand Down
2 changes: 1 addition & 1 deletion config.mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
{
"name": "DLC.Link",
"addresses": ["0x0DD4f29E21F10cb2E485cf9bDAb9F2dD1f240Bfa"],
"logo": "/images/logos/dlcBTC-logotype.svg"
"logo": "/images/logos/ibtc-logotype.svg"
},
{
"name": "Smart Bitcoin Labs",
Expand Down
2 changes: 1 addition & 1 deletion config.testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{
"name": "DLC.Link",
"addresses": ["0x0DD4f29E21F10cb2E485cf9bDAb9F2dD1f240Bfa"],
"logo": "/images/logos/dlcBTC-logotype.svg"
"logo": "/images/logos/ibtc-logotype.svg"
},
{
"name": "Smart Bitcoin Labs",
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg" href="/images/logos/dlc-link-logo.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>DLC.Link dlcBTC Website</title>
<title>DLC.Link iBTC Website</title>
</head>
<body>
<div id="root"></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function AttestorDetailsSelect(): React.JSX.Element {
<ActivityCardRow name={'Average Response'} value={'100.00%'}></ActivityCardRow>
<ActivityCardRow
name={'Potential rewards'}
value={'1,354.121 dlcBTC'}
value={'1,354.121 iBTC'}
></ActivityCardRow>
</>
</AttestorDetailsActivityCard>
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/attestor-details/attestor-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function AttestorDetails(): React.JSX.Element {
return (
<AttestorDetailsLayout>
<Text w={'100%'} color={'white'} fontSize={'6xl'} fontWeight={500}>
dlcBTC Attestor Details
iBTC Attestor Details
</Text>
<AttestorDetailsCard>
<AttestorDetailsCardLayout width={'310px'}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Divider, HStack, Image, Spacer, Text, VStack } from '@chakra-ui/react';
import { dlcBTC } from '@models/token';
import { iBTC } from '@models/token';

interface AttestorDetailsRateCardProps {
width: string;
Expand All @@ -16,9 +16,9 @@ export function AttestorDetailsRateCard({
Nakamoto Coefficient
</Text>
<HStack>
<Image src={dlcBTC.logo} alt={dlcBTC.logoAlt} boxSize={'35px'} />
<Image src={iBTC.logo} alt={iBTC.logoAlt} boxSize={'35px'} />
<Text color={'grey'} fontSize={'xl'}>
dlcBTC
iBTC
</Text>
<Spacer />
<Text color={'white'} fontSize={'x-large'}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function AttestorDetailsTableItem(
justifyContent={'space-between'}
>
<HStack w={'20%'}>
<Image src={'/images/logos/dlc-btc-logo.svg'} alt={'dlcBTC Logo'} boxSize={'30px'} />
<Image src={'/images/logos/ibtc-logo.svg'} alt={'iBTC Logo'} boxSize={'30px'} />
<Text
color={'white'}
fontSize={'sm'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function AttestorSelectTableItem(
justifyContent={'space-between'}
>
<HStack w={'20%'}>
<Image src={'/images/logos/dlc-btc-logo.svg'} alt={'dlcBTC Logo'} boxSize={'30px'} />
<Image src={'/images/logos/ibtc-logo.svg'} alt={'iBTC Logo'} boxSize={'30px'} />
<Text color={'white'} fontSize={'sm'} fontWeight={500}>
{hash}
</Text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { Button, Image, useBreakpointValue } from '@chakra-ui/react';
export function CompanyWebsiteButton(): React.JSX.Element {
const navigate = useNavigate();

const logoPath = './images/logos/dlc-btc-logo.svg';
const altText = 'dlcBTC Logo';
const logoPath = './images/logos/ibtc-logo.svg';
const altText = 'iBTC Logo';
const isMobile = useBreakpointValue({ base: true, md: false });

return (
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/header/components/tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function NavigationTabs({
{isActiveTabs && (
<>
<TabButton
title={'Mint/Withdraw dlcBTC'}
title={'Mint/Withdraw iBTC'}
isActive={activeTab === '/mint-withdraw'}
handleClick={() => handleTabClick('/mint-withdraw')}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function HowToMint(): React.JSX.Element {
<CustomCard width={'488px'} height={'970px'} padding={'25px'}>
{
<>
<Text variant={'title'}>How to Mint dlcBTC</Text>
<Text variant={'title'}>How to Mint iBTC</Text>
<Image src={'/images/mintBtc.png'} alt={'mint image'} h={'39px'} w={'185px'} />
<Box h={'25px'} />
<FlowStep
Expand All @@ -28,7 +28,7 @@ export function HowToMint(): React.JSX.Element {
<Text as={'span'} color={'accent.lightBlue.01'}>
Ethereum Wallet.{' '}
</Text>
You will receive your deposit token dlcBTC to the same address.
You will receive your deposit token iBTC to the same address.
</Text>
}
hasBadge={false}
Expand All @@ -49,18 +49,18 @@ export function HowToMint(): React.JSX.Element {
/>
<FlowStep
step={'Step 3'}
title={'Mint dlcBTC'}
title={'Mint iBTC'}
content={
<Text color={'white'}>
Wait for Bitcoin to get locked on chain{' '}
<Text as={'span'} color={'accent.lightBlue.01'}>
(~1 hour).{' '}
</Text>
After confirmation dlcBTC tokens will automatically appear in your{' '}
After confirmation iBTC tokens will automatically appear in your{' '}
<Text as={'span'} color={'accent.lightBlue.01'}>
Ethereum Wallet.{' '}
</Text>{' '}
You can use dlcBTC in big{' '}
You can use iBTC in big{' '}
<Text as={'span'} variant={'navigate'} fontSize={'md'}>
supported DeFi protocols
</Text>{' '}
Expand All @@ -83,7 +83,7 @@ export function HowToMint(): React.JSX.Element {
}}
variant={'account'}
>
Mint dlcBTC
Mint iBTC
</Button>
</>
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ export function HowToUnmint(): React.JSX.Element {
<CustomCard width={'488px'} height={'343px'} padding={'25px'}>
{
<>
<Text variant={'title'}>How to Unmint dlcBTC</Text>
<Text variant={'title'}>How to withdraw BTC</Text>
<Image src={'/images/unmintBtc.png'} alt={'unmint image'} h={'39px'} w={'185px'} />
<Box h={'25px'} />
<FlowStep
step={'Step 1'}
title={'Unmint dlcBTC'}
title={'Unmint iBTC'}
content={
<Text color={'white'}>
Select the vault you would like to unmint. After a successful unmint you will
Select the vault you would like to redeem from. After a successful withdraw you will
receive BTC in the same amount back to your wallet.
</Text>
}
Expand All @@ -39,7 +39,7 @@ export function HowToUnmint(): React.JSX.Element {
}}
variant={'account'}
>
Unmint dlcBTC
Unmint iBTC
</Button>
</>
}
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/how-it-works/middle/middle-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ export function MiddleSection(): React.JSX.Element {
>
<HStack w={'1000px'} justifyContent={'space-between'}>
<ExplanationBlock
title={'What is dlcBTC?'}
title={'What is iBTC?'}
image={<Image src={'/images/mint-btc-grad.png'} w={'200px'} h={'100px'} ml={'89px'} />}
content={
<Text color={'white'}>
dlcBTC is a{' '}
iBTC is a{' '}
<Box as={'span'} fontWeight={'bold'}>
non-custodial
</Box>{' '}
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/how-it-works/top/top-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ export function TopSection(): React.JSX.Element {
<HStack w={'1000px'} justifyContent={'space-between'}>
<VStack align={'left'}>
<Text color={'white.01'} fontSize={'56px'} fontWeight={'bold'}>
dlcBTC
iBTC
</Text>
<Text color={'white.01'} fontSize={'21px'} w={'462px'}>
dlcBTC lets you use your Bitcoin on different DeFi platforms, all without giving up
iBTC lets you use your Bitcoin on different DeFi platforms, all without giving up
control of your actual Bitcoin.
</Text>
</VStack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function WelcomeStack(): React.JSX.Element {
// const navigate = useNavigate();
const dispatch = useDispatch();

const setupText = 'Ready to\n mint dlcBTC?';
const setupText = 'Ready to\n mint iBTC?';

function onConnectWalletClick(): void {
dispatch(modalActions.toggleSelectWalletModalVisibility());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function ProgressTimeline({
<StepGraphics currentStep={currentStep} stepIndex={2} isLastStep />
</HStack>
<HStack w={'100%'} justifyContent={'space-between'}>
<StepText currentStep={currentStep} stepIndex={0} title="Burn dlcBTC" />
<StepText currentStep={currentStep} stepIndex={0} title="Burn iBTC" />
<StepText currentStep={currentStep} stepIndex={1} title="Sign Withdraw Transaction" />
<StepText currentStep={currentStep} stepIndex={2} title="Receive BTC" />
</HStack>
Expand Down Expand Up @@ -49,7 +49,7 @@ export function ProgressTimeline({
stepIndex={3}
width={'12.5%'}
isLastStep
title="Mint dlcBTC"
title="Mint iBTC"
/>
</HStack>
</VStack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ export function SetupVaultScreenVaultGraphics(): React.JSX.Element {
right="37.5%"
/>
<Image
src={'./images/logos/dlc-btc-logo.svg'}
src={'./images/logos/ibtc-logo.svg'}
alt={'DLC BTC Logo'}
boxSize={'75px'}
position="absolute"
left="37.5%"
/>
</Box>
<Text fontSize={'lg'} fontWeight={'bold'} color={'white.01'}>
BTC/dlcBTC Vault
BTC/iBTC Vault
</Text>
</VStack>
</VStack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function Walkthrough({
<Text color={'white.01'} fontSize={'md'}>
Enter the Bitcoin amount you wish to deposit into the vault, then verify the
transaction through your Bitcoin Wallet which will lock your Bitcoin on-chain. You
will receive equivalent amount of dlcBTC.
will receive equivalent amount of iBTC.
</Text>
</WalkthroughLayout>
);
Expand All @@ -74,29 +74,25 @@ export function Walkthrough({
<WalkthroughLayout>
<WalkthroughHeader
currentStep={currentStep}
title={'Mint dlcBTC'}
title={'Mint iBTC'}
blockchain={networkType}
/>
<Text color={'white.01'} fontSize={'sm'}>
Wait for Bitcoin to get locked on chain (~1 hour). After 6 confirmations, dlcBTC
Wait for Bitcoin to get locked on chain (~1 hour). After 6 confirmations, iBTC
tokens will appear in your Wallet.
</Text>
{networkType === NetworkType.EVM && (
<>
<Text color={'white.01'} fontSize={'sm'}>
To ensure your <span style={{ fontWeight: 800 }}>dlcBTC tokens </span>
To ensure your <span style={{ fontWeight: 800 }}>iBTC tokens </span>
are <span style={{ fontWeight: 800 }}>visible </span>
simply <span style={{ fontWeight: 800 }}>add them </span>
to your Ethereum Wallet.
</Text>

<Button variant={'vault'} onClick={async () => await addToken()}>
<HStack>
<Image
src={'/images/logos/dlc-btc-logo.svg'}
alt={'dlcBTC'}
boxSize={'25px'}
/>
<Image src={'/images/logos/ibtc-logo.svg'} alt={'iBTC'} boxSize={'25px'} />
<Text> Add Token to Wallet</Text>
</HStack>
</Button>
Expand All @@ -109,7 +105,7 @@ export function Walkthrough({
<WalkthroughLayout>
<WalkthroughHeader
currentStep={undefined}
title={'Minted dlcBTC'}
title={'Minted iBTC'}
blockchain={networkType}
/>
</WalkthroughLayout>
Expand All @@ -122,18 +118,18 @@ export function Walkthrough({
<WalkthroughLayout>
<WalkthroughHeader
currentStep={currentStep}
title={'Burn dlcBTC'}
title={'Burn iBTC'}
blockchain={networkType}
/>
{networkType === NetworkType.EVM ? (
<Text color={'white.01'} fontSize={'md'}>
Select the dlcBTC vault you would like to withdraw from. Burn the desired amount
of dlcBTC to receive the equivalent amount of BTC.
Select the iBTC vault you would like to withdraw from. Burn the desired amount of
iBTC to receive the equivalent amount of BTC.
</Text>
) : (
<Text color={'white.01'} fontSize={'md'}>
Select the dlcBTC vault you would like to withdraw from. Sign a check with the
desired amount of dlcBTC to receive the equivalent amount of BTC.
Select the iBTC vault you would like to withdraw from. Sign a check with the
desired amount of iBTC to receive the equivalent amount of BTC.
</Text>
)}
</WalkthroughLayout>
Expand All @@ -147,7 +143,7 @@ export function Walkthrough({
blockchain={NetworkType.BTC}
/>
<Text fontSize={'md'} color={'white.01'}>
{`Once the dlcBTC has been burned, you can withdraw an `}
{`Once the iBTC has been burned, you can withdraw an `}
<Text as="span" fontWeight="bold">
{` equivalent amount of Bitcoin `}
</Text>
Expand Down Expand Up @@ -175,7 +171,7 @@ export function Walkthrough({
<WalkthroughLayout>
<WalkthroughHeader
currentStep={undefined}
title={'Withdrawn dlcBTC'}
title={'Withdrawn iBTC'}
blockchain={networkType}
/>
</WalkthroughLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ interface SuccessfulFlowModalProps extends ModalComponentProps {

function getModalText(flow: 'mint' | 'burn', assetAmount?: number): string {
if (flow === 'mint') {
return `You have successfully deposited ${assetAmount} BTC from your Bitcoin Wallet into your Vault, and minted ${assetAmount} dlcBTC to your destination address.`;
return `You have successfully deposited ${assetAmount} BTC from your Bitcoin Wallet into your Vault, and minted ${assetAmount} iBTC to your destination address.`;
} else {
return `You have successfully burned ${assetAmount} dlcBTC from your destination address, and withdrawn ${assetAmount} BTC from your Vault into your Bitcoin Wallet.`;
return `You have successfully burned ${assetAmount} iBTC from your destination address, and withdrawn ${assetAmount} BTC from your Vault into your Bitcoin Wallet.`;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/components/my-vaults-small/my-vaults-small.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function MyVaultsSmall(): React.JSX.Element {
vaultState={VaultState.READY}
/>
<VaultsListGroupContainer
label="Minted dlcBTC"
label="Minted iBTC"
vaults={fundedVaults}
vaultState={VaultState.FUNDED}
/>
Expand Down
Loading
Loading