contract LiquidityAccessHelper is DydxFlashHelpers {
    /**
     * @dev Add Fee Amount to borrowed flashloan/
     * @param amt Get token amount at this ID from `InstaMemory` Contract.
     * @param getId Get token amount at this ID from `InstaMemory` Contract.
     * @param setId Set token amount at this ID in `InstaMemory` Contract.
    */
    function addFeeAmount(uint flashAmt, uint amt, uint getId, uint setId) external payable {
        uint _amt = getUint(getId, amt);
        require(_amt != 0, "amt-is-0");
        InstaFlashV2Interface instapoolContract = InstaFlashV2Interface(getInstaFlashV2Addr());

        uint totalFee = calculateFlashFeeAmt(instapoolContract, flashAmt, _amt);

        setUint(setId, totalFee);
    }

}
function addFeeAmount(uint flashAmt, uint amt, uint getId, uint setId) external payable {
    uint _amt = getUint(getId, amt);
    require(_amt != 0, "amt-is-0");
    InstaFlashV2Interface instapoolContract = InstaFlashV2Interface(getInstaFlashV2Addr());

    uint totalFee = calculateFlashFeeAmt(instapoolContract, flashAmt, _amt);

    setUint(setId, totalFee);
}

/**
 * @dev Add Fee Amount to borrowed flashloan/
 * @param amt Get token amount at this ID from `InstaMemory` Contract.
 * @param getId Get token amount at this ID from `InstaMemory` Contract.
 * @param setId Set token amount at this ID in `InstaMemory` Contract.
 */