Skip to content

Commit

Permalink
feat: add hai velo collateral
Browse files Browse the repository at this point in the history
  • Loading branch information
piesrtasty authored Jan 26, 2025
1 parent 1454669 commit 9ece60a
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@apollo/client": "3.8.8",
"@ethersproject/experimental": "5.4.0",
"@ethersproject/providers": "5.4.5",
"@hai-on-op/sdk": "1.2.20",
"@hai-on-op/sdk": "1.2.22",
"@nivo/core": "0.84.0",
"@nivo/line": "0.84.0",
"@nivo/pie": "0.84.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/BrandElements/HaiCoin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const Inner = styled(CenteredFlex)<{
backColor = '#D6B5A8'
break
}
case 'HAI-VELO': {
case 'HAIVELO': {
frontColor = '#FFFFFF'
backColor = '#c9c8c7'
break
Expand Down
2 changes: 1 addition & 1 deletion src/components/IntentionHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const wrappers: WrapperAdProps[] = [
description: 'Convert your VELO into haiVELO to use as collateral while earning veVELO rewards.',
cta: 'Mint haiVELO',
ctaLink: '/earn',
tokenImages: ['HAI-VELO'],
tokenImages: ['HAIVELO'],
},
]

Expand Down
4 changes: 2 additions & 2 deletions src/components/TokenArray.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export function TokenArray({ tokens, size = 32, label, hideLabel = false }: Toke

return (
<Flex $align="center" $gap={12} $grow={0}>
{tokens[0] == 'MOO-VELO-V2-OP-VELO' && (
{(tokens[0] == 'MOO-VELO-V2-OP-VELO' || tokens[0] == 'HAIVELO') && (
<div style={{ position: 'absolute' }}>
<div style={{ position: 'absolute', top: -20, left: -10 }}>
<div style={{ position: 'absolute', top: -20, left: -10, opacity: 0.65 }}>
<BlockBanner text="EXPERIMENTAL" $justify="flex-start" $fontSize=".5rem">
--
</BlockBanner>
Expand Down
1 change: 1 addition & 0 deletions src/containers/Splash/PairsBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const pairs: [string, string][] = [
['LINK', TOKEN_LOGOS['LINK']],
['TBTC', TOKEN_LOGOS['TBTC']],
['VELO', TOKEN_LOGOS['VELO']],
['HAIVELO', TOKEN_LOGOS['HAIVELO']],
// ['WBTC', TOKEN_LOGOS['WBTC']],
['APXETH', TOKEN_LOGOS['APXETH']],
['Beefy Vaults', TOKEN_LOGOS['MOO']],
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Vaults/MyVaultsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function MyVaultsTable({ headers, rows, sorting, setSorting, onCreate }:
} = vault

const hasFreeCollateral = freeCollateral !== '0.0'
const hasNoRewards = ['SNX', 'LUSD-A', 'LINK', 'VELO', 'WBTC', 'MOO-VELO-V2-OP-VELO']
const hasNoRewards = ['SNX', 'LUSD-A', 'LINK', 'VELO', 'WBTC', 'MOO-VELO-V2-OP-VELO', 'HAIVELO']
const collateralLabel = formatCollateralLabel(collateralName)
return (
<Table.Row
Expand Down
4 changes: 4 additions & 0 deletions src/utils/rewards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ export const REWARDS = {
KITE: 0,
OP: 0,
},
HAIVELO: {
KITE: 0,
OP: 0,
},

// Testnet
WBTC: {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const TOKEN_LOGOS = {
MOO: beefyImg,
DINERO: dineroImg,
PXETH: pxethImg,
'HAI-VELO': haiVeloImg,
HAIVELO: haiVeloImg,
}

export const tokenMap: Record<string, string> = {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2304,10 +2304,10 @@
forge-std "https://github.com/foundry-rs/forge-std.git#155d547c449afa8715f538d69454b83944117811"
typechain "^8.3.2"

"@hai-on-op/[email protected].20":
version "1.2.20"
resolved "https://registry.yarnpkg.com/@hai-on-op/sdk/-/sdk-1.2.20.tgz#46c395c4f50eea0adbca353fbe1a8dcc7015cf9e"
integrity sha512-ZCCJBC68jo4MddjD5cEx/K975Jw45P2/ea4uBWxLSqdgMK1z2L27miZ1MptVttw206ThITSofpgl6q5U9YuW9w==
"@hai-on-op/[email protected].22":
version "1.2.22"
resolved "https://registry.yarnpkg.com/@hai-on-op/sdk/-/sdk-1.2.22.tgz#f86f68c7a8d9ddb2eaa7bd7084c721368c4e182f"
integrity sha512-Jp2B1SgypJq/0rtRAiYTLTufQ1C3outCg5BnE3UrPnl9AKTZMU/3I5yU8jMH6xSx+M8RGFuNLdeGNOCBWiHP1w==
dependencies:
"@hai-on-op/abis" "1.0.7"
ethers "5.4.7"
Expand Down

0 comments on commit 9ece60a

Please sign in to comment.