Skip to content

Commit

Permalink
chore(cr): change builder to backer reward percentage (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajpiar authored Nov 27, 2024
1 parent 06e3333 commit f01b31b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .env.testnet.local
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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
Expand Down Expand Up @@ -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) => {
Expand Down

0 comments on commit f01b31b

Please sign in to comment.