-
Notifications
You must be signed in to change notification settings - Fork 2
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
TOK-408: estimated rewards #358
Conversation
1da3d69
to
63fb1e8
Compare
63fb1e8
to
08e92e7
Compare
import { tokenContracts } from '@/lib/contracts' | ||
import { Popover } from '@/components/Popover' | ||
import { Button } from '@/components/Button' | ||
import { Paragraph } from '@/components/Typography' | ||
|
||
export const Rewards: FC<{ builder: Address; gauge: Address }> = ({ builder, gauge }) => { | ||
console.log('🚀 ~ gauge:', gauge) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should remove it? or do we want to keep it for debugging purposes?
import { Address } from 'viem' | ||
import { useReadContract } from 'wagmi' | ||
|
||
export const useGetRewardShares = (gauge?: Address) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd make the parameter required in the signature, otherwise it doesn't make sense for this function to exist.
export const useGetRewardShares = (gauge?: Address) => { | |
export const useGetRewardShares = (gauge: Address) => { |
@@ -71,8 +71,8 @@ export const AllTimeRewards: FC<AllTimeRewardsProps> = ({ gauge, data: { rif, rb | |||
|
|||
useHandleErrors([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd combine these errors into one
error: rbtcError, | ||
} = useGetRewardMetrics(gauge, rbtcRewards ?? 0n, totalPotentialRewardsValue, rbtc.symbol, currency) | ||
|
||
useHandleErrors([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd combine these errors into one
8766ed7
to
7f0a332
Compare
8fca78d
to
07da9ed
Compare
7f0a332
to
ec28fd6
Compare
07da9ed
to
e2f9c69
Compare
ec28fd6
to
bfabaef
Compare
e2f9c69
to
1b628c5
Compare
1b628c5
to
65e7d09
Compare
2cf0de1
to
0d4951e
Compare
65e7d09
to
831531f
Compare
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What
Link