Skip to content

Commit

Permalink
Merge branch 'next'
Browse files Browse the repository at this point in the history
  • Loading branch information
toniocodo committed Jun 15, 2024
2 parents 2ece488 + afbfc2d commit 09a754f
Show file tree
Hide file tree
Showing 7 changed files with 1,865 additions and 2 deletions.
7 changes: 5 additions & 2 deletions libs/defi/ogn/src/staking/components/StakeRewardModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ import {
} from '@tanstack/react-table';
import { addMonths, formatDuration } from 'date-fns';
import { useIntl } from 'react-intl';
import { formatUnits } from 'viem';
import { formatUnits, parseUnits } from 'viem';
import { useAccount } from 'wagmi';

import { useStartLockupPolling } from '../hooks';
Expand Down Expand Up @@ -96,7 +96,10 @@ export const StakeRewardModal = (props: DialogProps) => {
label: approvalLabel,
} = useApprovalButton({
token: tokens.mainnet.OGN,
amount: amount + (info?.xOgnRewards ?? 0n),
amount:
amount +
(info?.xOgnRewards ?? 0n) +
parseUnits('1', tokens.mainnet.OGN.decimals),
spender: tokens.mainnet.xOGN.address,
enableAllowance: true,
});
Expand Down
463 changes: 463 additions & 0 deletions libs/defi/shared/src/generated/graphql.ts

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions libs/defi/shared/src/queries/snapshot.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ export type SpaceVoting = {
};

export type SpaceWhere = {
controller?: InputMaybe<Scalars['String']['input']>;
created?: InputMaybe<Scalars['Int']['input']>;
created_gt?: InputMaybe<Scalars['Int']['input']>;
created_gte?: InputMaybe<Scalars['Int']['input']>;
Expand Down Expand Up @@ -576,10 +577,13 @@ export type User = {
__typename?: 'User';
about?: Maybe<Scalars['String']['output']>;
avatar?: Maybe<Scalars['String']['output']>;
cover?: Maybe<Scalars['String']['output']>;
created: Scalars['Int']['output'];
github?: Maybe<Scalars['String']['output']>;
id: Scalars['String']['output'];
ipfs?: Maybe<Scalars['String']['output']>;
name?: Maybe<Scalars['String']['output']>;
twitter?: Maybe<Scalars['String']['output']>;
};

export type UsersWhere = {
Expand Down
4 changes: 4 additions & 0 deletions libs/governance/proposals/src/snapshot.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ export type SpaceVoting = {
};

export type SpaceWhere = {
controller?: InputMaybe<Scalars['String']['input']>;
created?: InputMaybe<Scalars['Int']['input']>;
created_gt?: InputMaybe<Scalars['Int']['input']>;
created_gte?: InputMaybe<Scalars['Int']['input']>;
Expand Down Expand Up @@ -576,10 +577,13 @@ export type User = {
__typename?: 'User';
about?: Maybe<Scalars['String']['output']>;
avatar?: Maybe<Scalars['String']['output']>;
cover?: Maybe<Scalars['String']['output']>;
created: Scalars['Int']['output'];
github?: Maybe<Scalars['String']['output']>;
id: Scalars['String']['output'];
ipfs?: Maybe<Scalars['String']['output']>;
name?: Maybe<Scalars['String']['output']>;
twitter?: Maybe<Scalars['String']['output']>;
};

export type UsersWhere = {
Expand Down
463 changes: 463 additions & 0 deletions libs/governance/shared/src/generated/graphql.ts

Large diffs are not rendered by default.

463 changes: 463 additions & 0 deletions libs/oeth/shared/src/generated/graphql.ts

Large diffs are not rendered by default.

463 changes: 463 additions & 0 deletions libs/ousd/shared/src/generated/graphql.ts

Large diffs are not rendered by default.

0 comments on commit 09a754f

Please sign in to comment.