Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
totiz committed Jan 17, 2021
1 parent 54cae38 commit 8c26f4b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .env.default
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
CMC_API_KEY=xxx // CoinMarketCap Key for unit test
KULAP_API_BASH_URL=https://api.kulap.io/v1/api // Optional
KULAP_API_BASE_URL=https://api.kulap.io/v1/api // Optional
FORKED_MAINNET_URL=PLEASE_PROVIDE_ETH_ARCHIVE_NODE_URL(https://archivenode.io/,https://infura.io/pricing)
MNEMONIC=KULAP_SDK
2 changes: 0 additions & 2 deletions .env.example

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const srcToken = "DAI"
const destToken = "LINK"
const amountIn = "100" // 100 DAI

const response = await kulapSDK.getRate(baseToken, pairToken, amountIn) // Get best rate from off-chain API
const response = await kulapSDK.getRate(srcToken, destToken, amountIn) // Get best rate from off-chain API

const isApproved = await kulapSDK.validate(response) // Check allowance of DAI token to Kulap DEX smart contract is made

Expand Down Expand Up @@ -82,7 +82,7 @@ const srcToken = "ETH"
const destToken = "DAI"
const amountIn = "1" // 1 ETH

const order = await kulapSDK.getRate(baseToken, pairToken, amountIn)
const order = await kulapSDK.getRate(srcToken, destToken, amountIn)
```
##### Response
| Value | Description |
Expand Down
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require('dotenv').config()

export const API_BASE_URL = process.env.KULAP_API_BASH_URL || 'https://api.kulap.io/v1/api'
export const API_BASE_URL = process.env.KULAP_API_BASE_URL || 'https://api.kulap.io/v1/api'
console.log('API_BASE_URL', API_BASE_URL)
export const CMC_URL = "https://pro-api.coinmarketcap.com"

Expand Down

0 comments on commit 8c26f4b

Please sign in to comment.