Skip to content

Commit e334804

Browse files
authored
General POWA & Spice updates (#913)
* feat: update final POWA launch changes, stakingrewardsOS contract address * chore: add changeset * chore: add changeset
1 parent 5af37b0 commit e334804

7 files changed

Lines changed: 31 additions & 10 deletions

File tree

.changeset/fair-goats-glow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@sovryn/contracts": patch
3+
---
4+
5+
Add StakingRewardsOS contract on BOB

.changeset/tasty-radios-retire.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"frontend": patch
3+
---
4+
5+
General POWA & Spice updates

apps/frontend/src/app/5_pages/LandingPage/components/QuickLaunch/QuickLaunch.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ export const QuickLaunch: FC = () => {
9999
url: () => navigate('/convert'),
100100
backgroundImage: runesBg,
101101
chains: [Chains.BOB],
102-
disable: true,
103102
},
104103
{
105104
title: t(pageTranslations.quickLaunch.earnYield_BOB.title),

apps/frontend/src/app/5_pages/RewardsPage/hooks/useGetLiquidOsSovClaimAmount.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Decimal } from '@sovryn/utils';
44

55
import { MS } from '../../../../constants/general';
66
import { useAccount } from '../../../../hooks/useAccount';
7+
import { useCurrentChain } from '../../../../hooks/useChainStore';
78
import { useGetProtocolContract } from '../../../../hooks/useGetContract';
89
import { useGetLockDate } from '../../StakePage/components/StakesFrame/hooks/useGetLockDate';
910

@@ -15,7 +16,8 @@ export const useGetLiquidOsSovClaimAmount = () => {
1516
});
1617

1718
const { account } = useAccount();
18-
const stakingRewardsOs = useGetProtocolContract('stakingRewardsOs');
19+
const chainId = useCurrentChain();
20+
const stakingRewardsOs = useGetProtocolContract('stakingRewardsOs', chainId);
1921
const now = useMemo(() => Math.ceil(Date.now() / MS), []);
2022
const { lockDate } = useGetLockDate(now);
2123

apps/frontend/src/locales/en/translations.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@
506506
"runes_BOB": {
507507
"title": "Trade Runes",
508508
"description": "The hottest tokens now trading on Sovryn.",
509-
"action": "Coming soon"
509+
"action": "Trade Runes"
510510
},
511511
"earnYield_BOB": {
512512
"title": "Passive Yield",
@@ -537,8 +537,8 @@
537537
"cta": "Learn More"
538538
},
539539
"runesBridge": {
540-
"title": "RUNES ARE COMING",
541-
"description": "Runes will soon be tradeable on mainnet! Runes bridge is being prepared to go live. Stay tuned!",
540+
"title": "RUNES ARE HERE!",
541+
"description": "Runes are now tradeable on mainnet! Runes bridge is live!",
542542
"cta": "Learn more about Runes"
543543
},
544544
"sovrynIsLiveOnBob": {
@@ -1008,14 +1008,14 @@
10081008
"meta": {
10091009
"title": "Extra Spice & Runes Leaderboard - Sovryn"
10101010
},
1011-
"title": "Extra Spice & Runes Leaderboard",
1011+
"title": "Extra Spice & Runes Season 1 Leaderboard",
10121012
"claimWarning": "Please note that users claiming from the distributor contract prior to <0>2024-05-31 12:00:00 UTC</0> will not be eligible to Extra Spice, and claiming prior to <1>2024-06-30 12:00:00 UTC</1> will not be eligible to Rune points.",
10131013
"aboutCampaign": "About Extra Spice and Runes campaign",
10141014
"claimLp": "Claim LP tokens",
10151015
"connectWalletText": "Connect your wallet to see how many points you’ve got.",
10161016
"connectWalletCta": "Connect wallet",
10171017
"table": {
1018-
"leaderboard": "Leaderboard",
1018+
"leaderboard": "Season 1 Leaderboard",
10191019
"yourPosition": "Your position",
10201020
"participant": "Participant",
10211021
"balance": "Balance",
@@ -1959,10 +1959,10 @@
19591959
"longDescription": "Your deposits were transferred into the Sovryn AMM pools on BOB. Deposit represents 50% of the value of your original token and 50% in SOV. Trading fees will begin accruing immediately.",
19601960
"eSovDescription": "For eSOV Depositors:<br/>If you deposited eSOV via Sovryn’s referral link, please move your eSOV to BOB and stake them in Sovryn on BOB. This action must be done by <0>2024-05-16 12:00:00 UTC</0> to be eligible for Extra Spice. <1>Read more</1>",
19611961
"claimWarning": "Please note that users claiming from the distributor contract prior to <0>2024-05-31 12:00:00 UTC</0> will not be eligible to Extra Spice, and claiming prior to <1>2024-06-30 12:00:00 UTC</1> will not be eligible to Rune points.",
1962-
"checkLeaderboard": "Check leaderboard",
1962+
"checkLeaderboard": "Check Season 1 leaderboard",
19631963
"disclaimer": "I understand that by claiming deposits now I will lose eligibility for the additional rewards",
19641964
"descriptionValues": {
1965-
"amm": "Marked Making page"
1965+
"amm": "Market Making page"
19661966
},
19671967
"originalDeposit": "Original deposit",
19681968
"claimableTitle": "AMM pool",

packages/contracts/src/contracts/protocol/bob.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ export const bob: Record<string, AsyncContractConfigData> = {
1010
getAbi: async () =>
1111
(await import('../../abis/merkleDistributor.json')).default,
1212
},
13+
stakingRewardsOs: {
14+
address: '0xFdC57Cb52264209afd1559E7E3Db0F28351E9422',
15+
getAbi: async () =>
16+
(await import('../../abis/StakingRewardsOs.json')).default,
17+
},
1318
runeBridge: {
1419
address: '0x8989E07E565966463C73dadE4c095DaC991e1dD2',
1520
getAbi: async () => (await import('../../abis/RuneBridge.json')).default,

packages/contracts/src/contracts/protocol/bobTestnet.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@ export const bobTestnet: Record<string, AsyncContractConfigData> = {
66
getAbi: async () => (await import('../../abis/staking.json')).default,
77
},
88
merkleDistributor: {
9-
address: '0x0', // todo: update address
9+
address: '0x0',
1010
getAbi: async () =>
1111
(await import('../../abis/merkleDistributor.json')).default,
1212
},
13+
stakingRewardsOs: {
14+
address: '0x0',
15+
getAbi: async () =>
16+
(await import('../../abis/StakingRewardsOs.json')).default,
17+
},
1318
runeBridge: {
1419
address: '0x9d451acb7A7f98dc4F2d2A2aA1A0b0436f0Effdb',
1520
getAbi: async () => (await import('../../abis/RuneBridge.json')).default,

0 commit comments

Comments
 (0)