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

chore(cr): change builder to backer reward percentage #429

Merged
merged 1 commit 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
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