Skip to content

Commit

Permalink
refactor: (rewards api function name) zero token name to meow (#1128)
Browse files Browse the repository at this point in the history
* refactor: (rewards-container) zero token name to meow

* refactor: (rewards-button) zero token name to meow

* refactor: (rewards-popup) zero token name to meow

* refactor: (rewards state types) zero token name to meow

* refactor: rename reducer setZero to setMeow

* refactor: rename - setMeowInUsd & setMeowPreviousDay

* refactor: (rewards saga function names) zero token name to meow

* refactor: (rewards api function names)  zero token name to meow
  • Loading branch information
domw30 authored Oct 23, 2023
1 parent 37aa520 commit 94b5997
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/store/rewards/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function fetchRewards(_obj: any): Promise<RewardsResp> {
};
}

export async function fetchCurrentZeroPriceInUSD() {
export async function fetchCurrentMeowPriceInUSD() {
const response = await get('/api/tokens/zero');
return {
success: true,
Expand Down
4 changes: 2 additions & 2 deletions src/store/rewards/saga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
setMeowPreviousDay,
setShowRewardsInPopup,
} from '.';
import { RewardsResp, fetchCurrentZeroPriceInUSD as fetchCurrentZeroPriceInUSDAPI, fetchRewards } from './api';
import { RewardsResp, fetchCurrentMeowPriceInUSD as fetchCurrentMeowPriceInUSDAPI, fetchRewards } from './api';
import { takeEveryFromBus } from '../../lib/saga';
import { getAuthChannel, Events as AuthEvents } from '../authentication/channels';
import { featureFlags } from '../../lib/feature-flags';
Expand All @@ -23,7 +23,7 @@ const totalRewardsKey = 'last_viewed_total_rewards';

export function* fetchCurrentMeowPriceInUSD() {
try {
const result = yield call(fetchCurrentZeroPriceInUSDAPI);
const result = yield call(fetchCurrentMeowPriceInUSDAPI);
if (result.success) {
yield put(setMeowInUSD(result.response.price));
}
Expand Down

0 comments on commit 94b5997

Please sign in to comment.