Skip to content

Commit

Permalink
Merge branch 'feat/sdk-syn-intents' into staging/syn-intents
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiTimesChi committed Jan 16, 2025
2 parents 76223f5 + f5c91d9 commit 009764a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 24 deletions.
11 changes: 11 additions & 0 deletions packages/synapse-interface/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.41.6](https://github.com/synapsecns/sanguine/compare/@synapsecns/synapse-interface@0.41.5...@synapsecns/synapse-interface@0.41.6) (2025-01-16)


### Bug Fixes

* **synapse-interface:** remove RFQ output amount check ([#3491](https://github.com/synapsecns/sanguine/issues/3491)) ([e20c0ce](https://github.com/synapsecns/sanguine/commit/e20c0ceaa2529d8961c019ac67ecfce2c5bea19d))





## [0.41.5](https://github.com/synapsecns/sanguine/compare/@synapsecns/synapse-interface@0.41.4...@synapsecns/synapse-interface@0.41.5) (2025-01-13)

**Note:** Version bump only for package @synapsecns/synapse-interface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ export const BridgeTransactionButton = ({
hasSufficientBalance,
doesBridgeStateMatchQuote,
isBridgeFeeGreaterThanInput,
isBridgeQuoteAmountGreaterThanInputForRfq,
onSelectedChain,
} = useBridgeValidations()

Expand All @@ -83,7 +82,6 @@ export const BridgeTransactionButton = ({
isWalletPending ||
!hasValidInput ||
!doesBridgeStateMatchQuote ||
isBridgeQuoteAmountGreaterThanInputForRfq ||
(isConnected && !hasValidQuote) ||
(isConnected && !hasSufficientBalance) ||
(isConnected && isQuoteStale) ||
Expand Down Expand Up @@ -175,15 +173,6 @@ export const BridgeTransactionButton = ({
destinationTokenAddressForState: toToken.addresses[toChainId],
bridgeQuote,
})
} else if (
!isLoading &&
isBridgeQuoteAmountGreaterThanInputForRfq &&
hasValidInput
) {
buttonProperties = {
label: t('Invalid bridge quote'),
onClick: null,
}
} else if (destinationAddress && !isAddress(destinationAddress)) {
buttonProperties = {
label: t('Invalid Destination address'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,6 @@ export const useBridgeValidations = () => {
return stringifiedBridgeQuote === stringifiedBridgeState
}, [stringifiedBridgeQuote, stringifiedBridgeState])

const isBridgeQuoteAmountGreaterThanInputForRfq = useMemo(() => {
return (
bridgeQuote.bridgeModuleName === 'SynapseRFQ' &&
bridgeQuote.outputAmount > debouncedFromValueBigInt
)
}, [
bridgeQuote.outputAmount,
bridgeQuote.bridgeModuleName,
debouncedFromValueBigInt,
])

const isBridgeFeeGreaterThanInput = useMemo(() => {
return (
bridgeQuote.bridgeModuleName !== null &&
Expand All @@ -107,7 +96,6 @@ export const useBridgeValidations = () => {
hasSufficientBalance,
doesBridgeStateMatchQuote,
isBridgeFeeGreaterThanInput,
isBridgeQuoteAmountGreaterThanInputForRfq,
onSelectedChain,
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/synapse-interface/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@synapsecns/synapse-interface",
"version": "0.41.5",
"version": "0.41.6",
"private": true,
"engines": {
"node": ">=18.18.0"
Expand Down

0 comments on commit 009764a

Please sign in to comment.