
import { IMarginFee, IMarginFeeSettingConfig } from '../../../../../../Application/DTOs/MarginFeeSettingsDto/MarginFeeSettingsDto.types'


export interface ISetMarginFeeConfig {
    type: 'SET',
    payload: IMarginFeeSettingConfig
}
export interface IAddMarginFee {
    type: 'ADD',
    payload: {
        movementType: string,
        marginFee: IMarginFee
    }
}

export interface IRemoveMarginFee {
    type: 'REMOVE',
    payload: {
        indexToRemove: number
        movementType: string
    }
}

export interface IUpdateMarginFee {
    type: 'UPDATE',
    payload: {
        index: number,
        item: IMarginFee,
        movementType: string
    }
}

export type TMarginActions = IAddMarginFee | IRemoveMarginFee | IUpdateMarginFee | ISetMarginFeeConfig