const initialState = {
    takeoff: {
        cybAbsolute: 0,
        currentPrize: 0,
    },
    relevance: {
        cybAbsolute: 0,
        currentPrize: 0,
    },
    load: {
        cybAbsolute: 0,
        currentPrize: 0,
    },
    delegation: {
        cybAbsolute: 0,
        currentPrize: 0,
    },
    lifetime: {
        cybAbsolute: 0,
        currentPrize: 0,
    },
    euler4Rewards: {
        cybAbsolute: 0,
        currentPrize: 0,
    },
    communityPool: {
        cybAbsolute: 0,
        currentPrize: 0,
    },
};
const golReducer = (state = initialState, action) => {
    switch (action.type) {
        case 'CHANGE_GOL_LOAD': {
            return Object.assign(Object.assign({}, state), { load: {
                    cybAbsolute: action.cybAbsolute,
                    currentPrize: action.currentPrize,
                } });
        }
        case 'CHANGE_GOL_DELEGATION': {
            return Object.assign(Object.assign({}, state), { delegation: {
                    cybAbsolute: action.cybAbsolute,
                    currentPrize: action.currentPrize,
                } });
        }
        case 'CHANGE_GOL_LIFETIME': {
            return Object.assign(Object.assign({}, state), { lifetime: {
                    cybAbsolute: action.cybAbsolute,
                    currentPrize: action.currentPrize,
                } });
        }
        case 'CHANGE_GOL_TAKEOFF': {
            return Object.assign(Object.assign({}, state), { takeoff: {
                    cybAbsolute: action.cybAbsolute,
                    currentPrize: action.currentPrize,
                } });
        }
        case 'CHANGE_GOL_RELEVANCE': {
            return Object.assign(Object.assign({}, state), { relevance: {
                    cybAbsolute: action.cybAbsolute,
                    currentPrize: action.currentPrize,
                } });
        }
        case 'CHANGE_GOL_EULER4REWARDS': {
            return Object.assign(Object.assign({}, state), { euler4Rewards: {
                    cybAbsolute: action.cybAbsolute,
                    currentPrize: action.currentPrize,
                } });
        }
        case 'CHANGE_COMMUNITY_POOL': {
            return Object.assign(Object.assign({}, state), { communityPool: {
                    cybAbsolute: action.cybAbsolute,
                    currentPrize: action.currentPrize,
                } });
        }
        default:
            return state;
    }
};
export default golReducer;
//# sourceMappingURL=gol.js.map