contract DydxFlashHelpers is Helpers {
    /**
     * @dev Return Instapool address
     */
    function getInstaFlashV2Addr() internal pure returns (address) {
        return 0x691d4172331a11912c6D0e6D1A002E3d7CED6a66;
    }

    function calculateTotalFeeAmt(InstaFlashV2Interface instapoolContract, uint amt) internal view returns (uint totalAmt) {
        uint fee = instapoolContract.fee();
        if (fee == 0) {
            totalAmt = amt;
        } else {
            uint feeAmt = wmul(amt, fee);
            totalAmt = add(amt, feeAmt);
        }
    }

    function calculateFlashFeeAmt(InstaFlashV2Interface instapoolContract, uint flashAmt, uint amt) internal view returns (uint totalAmt) {
        uint fee = instapoolContract.fee();
        if (fee == 0) {
            totalAmt = amt;
        } else {
            uint feeAmt = wmul(flashAmt, fee);
            totalAmt = add(amt, feeAmt);
        }
    }
}
function getInstaFlashV2Addr() internal pure returns (address) {
    return 0x691d4172331a11912c6D0e6D1A002E3d7CED6a66;
}

/**
 * @dev Return Instapool address
 */