Skip to content

Commit

Permalink
remove console statements
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSchiavini committed Oct 23, 2024
1 parent fe6fd7b commit c5e7c01
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion apps/main/src/entities/gauge/api/rewards-mutate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import useStore from '@/store/useStore'

export const mutateAddRewardToken = async ({ poolId, rewardTokenId, distributorId }: AddRewardQuery): Promise<string> => {
const { curve } = useStore.getState()
console.log('mutateAddRewardToken', poolId, rewardTokenId, distributorId)
const pool = curve.getPool(poolId)
return pool.gauge.addReward(rewardTokenId, distributorId)
}
Expand Down
6 changes: 2 additions & 4 deletions apps/main/src/entities/gauge/model/mutate-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ import {
import { gaugeKeys as keys } from './query-keys'

export const getAddRewardTokenMutation = (gauge: GaugeParams) => ({
mutationFn: async (params: AddRewardMutation) => {
console.log('AddRewardToken', params);
return api.mutateAddRewardToken(assertValidity(gaugeAddRewardValidationSuite, { ...gauge, ...params }))
},
mutationFn: async (params: AddRewardMutation) =>
api.mutateAddRewardToken(assertValidity(gaugeAddRewardValidationSuite, { ...gauge, ...params })),
mutationKey: keys.addRewardToken(gauge),
meta: {
queryKeyFn: ({ rewardTokenId, distributorId }: AddRewardParams) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export const AddRewardToken: React.FC<AddRewardTokenProps> = ({ chainId, poolId

const onSubmit = useCallback(
({ rewardTokenId, distributorId }: AddRewardFormValues) => {
console.log('onSubmit', { rewardTokenId, distributorId, chainId, poolId })
addRewardToken(
{ rewardTokenId, distributorId },
{
Expand Down

0 comments on commit c5e7c01

Please sign in to comment.