Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ const contractArgsCalldata = LimitOrderContract.getFillContractOrderArgsCalldata
)
```

The calldata should be sent to the 1inch Limit Order Protocol contract addresses can be found at [docs](https://portal.1inch.dev/documentation/contracts/aggregation-protocol/aggregation-introduction#:~:text=0x111111111117dC0aa78b770fA6A738034120C302-,Aggregation%20Router%20v6,-Name)

#### Taker Traits Configuration

`TakerTraits` allows you to configure various execution parameters:
Expand Down Expand Up @@ -211,7 +209,7 @@ import {Api, FetchProviderConnector, LimitOrder, HttpProviderConnector} from '@1
const networkId = 1 // ethereum
const api = new Api({
networkId,
authKey: 'key', // get it at https://portal.1inch.dev/
authKey: 'key', // get it at https://business.1inch.com/portal/
httpConnector: new FetchProviderConnector() // or use any connector which implements `HttpProviderConnector`
})

Expand Down Expand Up @@ -279,7 +277,7 @@ import {AxiosProviderConnector} from '@1inch/limit-order-sdk/axios'

const api = new Api({
networkId: 1, // ethereum
authKey: 'key', // get it at https://portal.1inch.dev/
authKey: 'key', // get it at https://business.1inch.com/portal/
httpConnector: new AxiosProviderConnector()
})
```
Expand Down
2 changes: 1 addition & 1 deletion src/api/constants.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const DEV_PORTAL_LIMIT_ORDER_BASE_URL =
'https://api.1inch.dev/orderbook/v4.1'
'https://api.1inch.com/orderbook/v4.1'
2 changes: 1 addition & 1 deletion src/api/errors.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export class AuthError extends Error {
constructor() {
super('Auth error, please use token from https://portal.1inch.dev/')
super('Auth error, please use token from https://business.1inch.com/portal/')
}
}
Loading