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

[IND-496]: Create trading_reward_aggregations postgres table #825

Merged
merged 3 commits into from
Nov 30, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
nit
Christopher-Li committed Nov 30, 2023
commit b542dd8f0c50b24c4eb7080041039bfa08919037
Original file line number Diff line number Diff line change
@@ -71,7 +71,7 @@ describe('TradingRewardAggregation store', () => {
);
});

it('Successfully returns undefined when upgrating a nonexistent TradingRewardAggregation', async () => {
it('Successfully returns undefined when updating a nonexistent TradingRewardAggregation', async () => {
const fakeUpdate:
TradingRewardAggregationFromDatabase | undefined = await TradingRewardAggregationTable.update({
id: defaultSubaccountId,
4 changes: 2 additions & 2 deletions indexer/packages/postgres/src/types/db-model-types.ts
Original file line number Diff line number Diff line change
@@ -237,8 +237,8 @@ export interface TradingRewardAggregationFromDatabase {
address: string;
startedAt: IsoString;
startedAtHeight: string;
endedAt: IsoString;
endedAtHeight: string;
endedAt?: IsoString;
endedAtHeight?: string;
period: TradingRewardAggregationPeriod;
amount: string;
}