Skip to content

Commit

Permalink
feat(hooks-store): add sell/buy amounts to hook-dapp context (#4990)
Browse files Browse the repository at this point in the history
  • Loading branch information
shoom3301 authored Oct 16, 2024
1 parent 395f48f commit 26cbffb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ export function useSetupHooksStoreOrderParams() {

setOrderParams({
validTo: orderParams.validTo,
sellAmount: orderParams.inputAmount.quotient.toString(),
buyAmount: orderParams.outputAmount.quotient.toString(),
sellTokenAddress: getCurrencyAddress(orderParams.inputAmount.currency),
buyTokenAddress: getCurrencyAddress(orderParams.outputAmount.currency),
})
Expand Down
2 changes: 2 additions & 0 deletions libs/hook-dapp-lib/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ export interface HookDappOrderParams {
validTo: number
sellTokenAddress: string
buyTokenAddress: string
sellAmount: string
buyAmount: string
}

export interface HookDappContext {
Expand Down

0 comments on commit 26cbffb

Please sign in to comment.