Skip to content

Commit

Permalink
fix(apps/furo): add default values for placeholder stream
Browse files Browse the repository at this point in the history
  • Loading branch information
LufyCZ committed Sep 7, 2022
1 parent cfe089a commit 2c910b9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/furo/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ const exampleStream = new Stream({
remainingShares: '50000000000',
initialShares: '119940000000',
initialAmount: '117994000000',
initialSharesExtended: '0',
extendedShares: '0',
withdrawnAmount: '69308282750',
withdrawnAmountAfterExtension: '0',
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
recipient: { id: AddressZero },
Expand Down
2 changes: 2 additions & 0 deletions apps/furo/pages/stream/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ export const getServerSideProps: GetServerSideProps<Props> = async ({ query: { c
getRebase(chainId as string, stream.token.id),
])

console.log('stream', stream)

return {
props: {
fallback: {
Expand Down
4 changes: 4 additions & 0 deletions apps/furo/query.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,10 @@ query userStreams($block: Block_height, $id: ID!) {
initialShares
initialAmount
extendedShares
initialSharesExtended
remainingShares
withdrawnAmount
withdrawnAmountAfterExtension
recipient {
id
}
Expand All @@ -169,8 +171,10 @@ query userStreams($block: Block_height, $id: ID!) {
initialShares
initialAmount
extendedShares
initialSharesExtended
remainingShares
withdrawnAmount
withdrawnAmountAfterExtension
recipient {
id
}
Expand Down

0 comments on commit 2c910b9

Please sign in to comment.