lushdog@outlook.com 5 일 전
부모
커밋
201756f3e0
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      src/closePosition/index.ts

+ 4 - 1
src/closePosition/index.ts

@@ -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>