Skip to content

Commit

Permalink
Merge pull request #350 from EdgeApp/matthew/remove-partial
Browse files Browse the repository at this point in the history
Remove partial flag from thorchain and maya protocol
  • Loading branch information
peachbits authored Nov 11, 2024
2 parents 23d5753 + 8b26753 commit 71a3ccd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/swap/defi/thorchain/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ interface CalcSwapParams {
}

interface CalcSwapResponse {
canBePartial: boolean
// canBePartial: boolean
fromNativeAmount: string
fromExchangeAmount: string
maxFulfillmentSeconds?: number
Expand Down Expand Up @@ -535,7 +535,7 @@ export function makeThorchainBasedPlugin(
})
}
const {
canBePartial,
// canBePartial,
fromNativeAmount,
maxFulfillmentSeconds,
toNativeAmount,
Expand Down Expand Up @@ -638,7 +638,7 @@ export function makeThorchainBasedPlugin(

return {
addTxidToOrderUri: true,
canBePartial,
canBePartial: false, // Partial quotes are disabled for now
maxFulfillmentSeconds,
request,
makeTxParams,
Expand Down Expand Up @@ -733,7 +733,7 @@ export function makeThorchainBasedPlugin(

return {
addTxidToOrderUri: true,
canBePartial,
canBePartial: false, // Partial quotes are disabled for now
maxFulfillmentSeconds,
request,
spendInfo,
Expand Down Expand Up @@ -913,7 +913,7 @@ const calcSwapFrom = async ({
: preMemo.replace(':0/', `:${toThorAmountWithSpread}/`)

return {
canBePartial,
// canBePartial,
fromNativeAmount,
fromExchangeAmount,
maxFulfillmentSeconds,
Expand Down Expand Up @@ -1053,7 +1053,7 @@ const calcSwapTo = async ({
: preMemo.replace(':0/', `:${requestedToThorAmount}/`)

return {
canBePartial,
// canBePartial,
fromNativeAmount,
fromExchangeAmount,
toNativeAmount,
Expand Down

0 comments on commit 71a3ccd

Please sign in to comment.