|
@@ -68,6 +68,7 @@ class ProfitShareOrderEntity extends BaseEntity
|
|
|
*/
|
|
*/
|
|
|
private function calculateOrder(float $amount, float $splitLowestRatio): array
|
|
private function calculateOrder(float $amount, float $splitLowestRatio): array
|
|
|
{
|
|
{
|
|
|
|
|
+ $splitLowestRatio = bcsub(100, (string)$splitLowestRatio, 2);
|
|
|
$fee = Config::getConfig('profit_share_fee');
|
|
$fee = Config::getConfig('profit_share_fee');
|
|
|
$feeAmt = bcmul((string)$amount, (string)$fee, 2);
|
|
$feeAmt = bcmul((string)$amount, (string)$fee, 2);
|
|
|
if (bccomp($feeAmt, '1') == -1) {
|
|
if (bccomp($feeAmt, '1') == -1) {
|