Skip to content

Commit

Permalink
Merge pull request #298 from RootstockCollective/chore/DAO_737
Browse files Browse the repository at this point in the history
chore: change column order on treasury page
  • Loading branch information
jessgusclark authored Oct 29, 2024
2 parents d35b3be + 8b228f5 commit 3c3d51e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/app/treasury/TreasuryContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const TreasuryContextProvider = ({ children }: Props) => {
const bucketTwoBalance = useGetTreasuryBucketBalance(treasuryContracts[1].address)
const bucketThreeBalance = useGetTreasuryBucketBalance(treasuryContracts[2].address)
const bucketFourBalance = useGetTreasuryBucketBalance(treasuryContracts[3].address)
const bucketFiveBalance = useGetTreasuryBucketBalance(treasuryContracts[4].address)

// Create the buckets array
const buckets = useMemo(
Expand All @@ -73,8 +74,9 @@ const TreasuryContextProvider = ({ children }: Props) => {
getBucketBalance(bucketTwoBalance, prices),
getBucketBalance(bucketThreeBalance, prices),
getBucketBalance(bucketFourBalance, prices),
getBucketBalance(bucketFiveBalance, prices),
],
[bucketOneBalance, bucketTwoBalance, bucketThreeBalance, bucketFourBalance, prices],
[bucketOneBalance, bucketTwoBalance, bucketThreeBalance, bucketFourBalance, bucketFiveBalance, prices],
)

const bucketsTotal = useMemo(() => getAllBucketsHoldings(buckets), [buckets])
Expand Down
1 change: 0 additions & 1 deletion src/app/treasury/TreasurySection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export const TreasurySection = () => {
title={`${contract.name} RBTC`}
amount={`${buckets[index]?.RBTC?.amount ? toFixed(buckets[index].RBTC.amount) : 0}`}
fiatAmount={`= USD ${buckets[index]?.RBTC?.fiatAmount ? buckets[index].RBTC.fiatAmount : 0}`}
contractAddress={contract.address}
data-testid={`${contract.name}-RBTC`}
borderless
/>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ const treasuryContracts = [
{ name: 'Grants', address: GRANTS_BUCKET_ADDRESS },
{ name: 'Grants - Active', address: GRANTS_ACTIVE_BUCKET_ADDRESS },
{ name: 'Growth', address: GROWTH_BUCKET_ADDRESS },
{ name: 'General', address: GENERAL_BUCKET_ADDRESS },
{ name: 'Growth - Rewards', address: SIMPLIFIED_REWARD_DISTRIBUTOR_ADDRESS },
{ name: 'General', address: GENERAL_BUCKET_ADDRESS },
]

const GovernorAddress = GOVERNOR_ADDRESS
Expand Down

0 comments on commit 3c3d51e

Please sign in to comment.