From f222a2381ce7c93a678f83cb795ce0cc77bc58d2 Mon Sep 17 00:00:00 2001 From: Juraj Piar Date: Wed, 27 Nov 2024 16:10:40 +0000 Subject: [PATCH] chore(cr): change builder to backer reward percentage --- .env.testnet.local | 2 +- .../settings/builder/hooks/useBuilderConfig.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.env.testnet.local b/.env.testnet.local index 3ba90e73..f44bbb20 100644 --- a/.env.testnet.local +++ b/.env.testnet.local @@ -6,7 +6,7 @@ NEXT_PUBLIC_EXPLORER=https://explorer.testnet.rootstock.io NEXT_PUBLIC_BUILD_ID= NEXT_PUBLIC_RIF_ADDRESS=0x19f64674d8a5b4e652319f5e239efd3bc969a1fe -NEXT_PUBLIC_STRIF_ADDRESS=0xC4b091d97AD25ceA5922f09fe80711B7ACBbb16f +NEXT_PUBLIC_STRIF_ADDRESS=0xb514d8181e23cf59BE7E4FF237f28dd02BB0772E NEXT_PUBLIC_GOVERNOR_ADDRESS=0xB1A39B8f57A55d1429324EEb1564122806eb297F NEXT_PUBLIC_EA_NFT_ADDRESS=0x0Ee4e11f2F2B551cA31Ea7873c7bA675cb51A59d NEXT_PUBLIC_MULTICALL_ADDRESS=0xcA11bde05977b3631167028862bE2a173976CA11 diff --git a/src/app/collective-rewards/settings/builder/hooks/useBuilderConfig.ts b/src/app/collective-rewards/settings/builder/hooks/useBuilderConfig.ts index 03a65185..9ec6a0f2 100644 --- a/src/app/collective-rewards/settings/builder/hooks/useBuilderConfig.ts +++ b/src/app/collective-rewards/settings/builder/hooks/useBuilderConfig.ts @@ -1,7 +1,10 @@ +import { useAwaitedTxReporting } from '@/app/collective-rewards/shared/hooks' import { BuilderRegistryAbi } from '@/lib/abis/v2/BuilderRegistryAbi' +import { AVERAGE_BLOCKTIME } from '@/lib/constants' import { BackersManagerAddress } from '@/lib/contracts' import { Modify } from '@/shared/utility' import { DateTime } from 'luxon' +import { useEffect, useState } from 'react' import { Address } from 'viem' import { useReadContract, @@ -11,9 +14,6 @@ import { useWriteContract, UseWriteContractReturnType, } from 'wagmi' -import { useAwaitedTxReporting } from '../../../shared/hooks' -import { useEffect, useState } from 'react' -import { AVERAGE_BLOCKTIME } from '@/lib/constants' export type BackerReward = { previous: bigint @@ -81,8 +81,8 @@ export const useSetBackerRewardsForBuilder = (): SetBackerRewardsForBuilder => { isLoadingReceipt: isLoading, isSuccess, receipt, - title: 'Setting new builder rewards percentage', - errorContent: 'Error setting new builder rewards percentage', + title: 'Setting new backer rewards percentage', + errorContent: 'Error setting new backer rewards percentage', }) const setNewReward = async (newReward: bigint) => {