智能合约滑点问题

aprilwan aprilwan 提出于 2022-07-21 10:16 4324 浏览

// fee array = each value relates to equivalent index in pairPath array, (feeArray[0] is the fee associated with pairPath[0]).
// Values are represented by multiplying the percentage fee by 100 - therefore pancakeSwapV2 fee of 0.25% becomes 25 - expressed as number //example: [pancakeSwap (0.2%), apeSwap (0.2%), pancakeSwapV2 (0.25%)] const feeArray = [20, 20, 25];

智能合约.png

BUSD-USDT.png 第一个是我的合约,第二个是我实时完成的一笔交易的截图,麻烦各位大佬看看,我这个出了什么问题,为什么BUSD-USDT的价差会这么大,图片是实时截图,不存在价格变动问题。

0 条评论 5 学分

2 个回答

Tiny熊 2022-07-21 10:49

擅长:智能合约,以太坊

黄金叶 2022-07-28 10:11

写回答

你需要登录后才可以回答问题,登录