Skip to content

Commit

Permalink
Update SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook committed Jan 20, 2025
1 parent 0b81810 commit e7247d5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@safe-global/protocol-kit": "^4.1.3",
"@safe-global/safe-apps-sdk": "^9.1.0",
"@safe-global/safe-client-gateway-sdk": "v1.60.1",
"@safe-global/safe-gateway-typescript-sdk": "3.22.7-beta.2",
"@safe-global/safe-gateway-typescript-sdk": "3.22.7",
"@safe-global/safe-modules-deployments": "^2.2.1",
"@safe-global/store": "workspace:^",
"@sentry/react": "^7.91.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
import type { Order } from '@safe-global/safe-gateway-typescript-sdk'
import type { BaseOrder } from '@safe-global/safe-gateway-typescript-sdk'
import { getOrderFeeBps } from '@/features/swap/helpers/utils'
import { DataRow } from '@/components/common/Table/DataRow'
import { formatVisualAmount } from '@/utils/formatters'
import { HelpIconTooltip } from '@/features/swap/components/HelpIconTooltip'

export const SurplusFee = ({
order,
}: {
order: Pick<Order, 'fullAppData' | 'sellToken' | 'buyToken' | 'status' | 'executedSurplusFee' | 'kind'> & {
// TODO: Remove when migrating to new SDK
executedFee: string
executedFeeToken: Order['sellToken']
}
}) => {
export const SurplusFee = ({ order }: { order: BaseOrder }) => {
const bps = getOrderFeeBps(order)
const { executedFee, executedFeeToken } = order

if (executedFee === null || typeof executedFee === 'undefined' || executedFee === '0') {
if (executedFee === null || executedFee === '0') {
return null
}

Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7775,10 +7775,10 @@ __metadata:
languageName: node
linkType: hard

"@safe-global/safe-gateway-typescript-sdk@npm:3.22.7-beta.2":
version: 3.22.7-beta.2
resolution: "@safe-global/safe-gateway-typescript-sdk@npm:3.22.7-beta.2"
checksum: 10/3b882860fd6abcc682f1ff7aa17760aeb352ab15309e108f74ca9e6464bc2cae8d99c6da5980b70ea94d0d45ea9b1092e92c26cef01ab5f9d56ed9fbefbcd811
"@safe-global/safe-gateway-typescript-sdk@npm:3.22.7":
version: 3.22.7
resolution: "@safe-global/safe-gateway-typescript-sdk@npm:3.22.7"
checksum: 10/0b16b943be3f268ceb17b962053b152046f0c9126c764fcbc7ddf3b34974396e75d3c29d2515b993c35cec9d583282b28b20d8f065582de425350d73d1f7e237
languageName: node
linkType: hard

Expand Down Expand Up @@ -7877,7 +7877,7 @@ __metadata:
"@safe-global/safe-apps-sdk": "npm:^9.1.0"
"@safe-global/safe-client-gateway-sdk": "npm:v1.60.1"
"@safe-global/safe-core-sdk-types": "npm:^5.0.1"
"@safe-global/safe-gateway-typescript-sdk": "npm:3.22.7-beta.2"
"@safe-global/safe-gateway-typescript-sdk": "npm:3.22.7"
"@safe-global/safe-modules-deployments": "npm:^2.2.1"
"@safe-global/store": "workspace:^"
"@safe-global/test": "workspace:^"
Expand Down

0 comments on commit e7247d5

Please sign in to comment.