Closed maurelian closed 4 years ago
fixed with #137
⇒ surya ftrace -i NiftyswapExchange::_baseToToken all contracts/exchange/NiftyswapExchange.sol
└─ NiftyswapExchange::_baseToToken
├─ NiftyswapExchange::_getTokenReserves | [Int] 🔒
│ ├─ IERC1155::balanceOf | [Ext] ❗️
│ └─ IERC1155::balanceOfBatch | [Pub] ❗️
├─ NiftyswapExchange::getBuyPrice | [Ext] ❗️
│ ├─ _assetSoldReserve::mul | [Int] 🔒
│ └─ _assetBoughtReserve::sub | [Int] 🔒
├─ totalRefundBaseTokens::sub | [Int] 🔒
├─ baseReserve::add | [Int] 🔒
├─ IERC1155::safeTransferFrom | [Pub] ❗️ 🛑
└─ IERC1155::safeBatchTransferFrom | [Pub] ❗️ 🛑
To repro:
git clone https://github.com/arcadeum/niftyswap
cd niftyswap
surya ftrace -i NiftyswapExchange::_baseToToken all contracts/exchange/NiftyswapExchange.sol
Output is:
I tested all other surya commands and they work fine on this contract.