-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: slippage tolerance in all trades
- Loading branch information
1 parent
6abff1c
commit 12e9f6d
Showing
107 changed files
with
4,471 additions
and
3,184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export { default as quoteCreateInventoryPosition } from './quoteCreateInventoryPosition'; | ||
export { default as quoteCreateLiquidityPosition } from './quoteCreateLiquidityPosition'; | ||
export { default as quoteCreateVault } from './quoteCreateVault'; | ||
export { default as quoteIncreaseLiquidity } from './quoteIncreaseLiquidity'; | ||
export { default as quoteWithdrawInventory } from './quoteWithdrawInventory'; | ||
export { default as quoteWithdrawLiquidity } from './quoteWithdrawLiquidity'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import config from '@nftx/config'; | ||
import { | ||
CreateInventoryPositionQuote, | ||
CreateInventoryPositionQuoteParams, | ||
} from '@nftx/types'; | ||
import { queryApi } from '../utils'; | ||
|
||
const quoteCreateInventoryPosition = ({ | ||
network = config.network, | ||
...query | ||
}: CreateInventoryPositionQuoteParams & { network?: number }) => { | ||
return queryApi<CreateInventoryPositionQuote>({ | ||
url: `/${network}/quote/create-inventory-position`, | ||
method: 'POST', | ||
query, | ||
}); | ||
}; | ||
|
||
export default quoteCreateInventoryPosition; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import config from '@nftx/config'; | ||
import { | ||
CreateLiquidityPositionQuote, | ||
CreateLiquidityPositionQuoteParams, | ||
} from '@nftx/types'; | ||
import { queryApi } from '../utils'; | ||
|
||
const quoteCreateLiquidityPosition = ({ | ||
network = config.network, | ||
...query | ||
}: CreateLiquidityPositionQuoteParams & { network?: number }) => { | ||
return queryApi<CreateLiquidityPositionQuote>({ | ||
url: `/${network}/quote/create-liquidity-position`, | ||
method: 'POST', | ||
query, | ||
}); | ||
}; | ||
|
||
export default quoteCreateLiquidityPosition; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import config from '@nftx/config'; | ||
import { CreateVaultQuote, CreateVaultQuoteParams } from '@nftx/types'; | ||
import { queryApi } from '../utils'; | ||
|
||
const quoteCreateVault = ({ | ||
network = config.network, | ||
...query | ||
}: CreateVaultQuoteParams & { network?: number }) => { | ||
return queryApi<CreateVaultQuote>({ | ||
url: `/${network}/quote/create-vault`, | ||
method: 'POST', | ||
query, | ||
}); | ||
}; | ||
|
||
export default quoteCreateVault; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import config from '@nftx/config'; | ||
import { | ||
IncreaseLiquidityQuote, | ||
IncreaseLiquidityQuoteParams, | ||
} from '@nftx/types'; | ||
import { queryApi } from '../utils'; | ||
|
||
const quoteIncreaseLiquidity = ({ | ||
network = config.network, | ||
...query | ||
}: IncreaseLiquidityQuoteParams & { network?: number }) => { | ||
return queryApi<IncreaseLiquidityQuote>({ | ||
url: `/${network}/quote/increase-liquidity`, | ||
method: 'POST', | ||
query, | ||
}); | ||
}; | ||
|
||
export default quoteIncreaseLiquidity; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import config from '@nftx/config'; | ||
import { queryApi } from '../utils'; | ||
import { | ||
WithdrawInventoryQuote, | ||
WithdrawInventoryQuoteParams, | ||
} from '@nftx/types'; | ||
|
||
const quoteWithdrawInventory = ({ | ||
network = config.network, | ||
...query | ||
}: { network?: number } & WithdrawInventoryQuoteParams) => { | ||
return queryApi<WithdrawInventoryQuote>({ | ||
url: `/${network}/quote/withdraw-inventory`, | ||
method: 'POST', | ||
query, | ||
}); | ||
}; | ||
|
||
export default quoteWithdrawInventory; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import config from '@nftx/config'; | ||
import { queryApi } from '../utils'; | ||
import { | ||
WithdrawLiquidityQuote, | ||
WithdrawLiquidityQuoteParams, | ||
} from '@nftx/types'; | ||
|
||
const quoteWithdrawLiquidity = ({ | ||
network = config.network, | ||
...query | ||
}: WithdrawLiquidityQuoteParams & { network?: number }) => { | ||
return queryApi<WithdrawLiquidityQuote>({ | ||
url: `/${network}/quote/withdraw-liquidity`, | ||
method: 'POST', | ||
query, | ||
}); | ||
}; | ||
|
||
export default quoteWithdrawLiquidity; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.