|
|
@@ -2,7 +2,6 @@ import { loadConfig } from '../config.js'
|
|
|
|
|
|
const LIST_API = 'https://api2.byreal.io/byreal/api/dex/v2/position/list'
|
|
|
const DETAIL_API = 'https://api2.byreal.io/byreal/api/dex/v2/position/detail'
|
|
|
-// const COPY_INFO_API = 'https://api2.byreal.io/byreal/api/dex/v2/copy/info'
|
|
|
|
|
|
interface BonusInfo {
|
|
|
fromCreatorPosition?: string
|
|
|
@@ -90,6 +89,10 @@ async function callLpCloseApi(
|
|
|
): Promise<LpCloseApiResponse> {
|
|
|
const res = await fetch(apiUrl, {
|
|
|
method: 'POST',
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'application/json',
|
|
|
+ 'Authorization': auth,
|
|
|
+ },
|
|
|
body: JSON.stringify({ nftMintAddress }),
|
|
|
})
|
|
|
return res.json() as Promise<LpCloseApiResponse>
|