-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #102 from lyve-app/feat/reward
feat: updated reward costs and checked if sender can afford rewards
- Loading branch information
Showing
2 changed files
with
64 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
import { RewardType } from "@prisma/client"; | ||
|
||
export const rewards: { [Key in RewardType]: { points: number } } = { | ||
popsicle: { points: 1 }, | ||
pizza: { points: 2 }, | ||
gift: { points: 5 }, | ||
rocket: { points: 10 }, | ||
star: { points: 20 }, | ||
cake: { points: 35 }, | ||
crown: { points: 50 }, | ||
heart: { points: 75 }, | ||
bouquet: { points: 100 }, | ||
lucky_cat: { points: 200 } | ||
export const rewards: { | ||
[Key in RewardType]: { points: number; cost: number }; | ||
} = { | ||
popsicle: { points: 1, cost: 1 }, | ||
pizza: { points: 2, cost: 4 }, | ||
gift: { points: 5, cost: 10 }, | ||
rocket: { points: 10, cost: 20 }, | ||
star: { points: 25, cost: 50 }, | ||
cake: { points: 50, cost: 99 }, | ||
crown: { points: 75, cost: 150 }, | ||
heart: { points: 100, cost: 180 }, | ||
bouquet: { points: 200, cost: 380 }, | ||
lucky_cat: { points: 1000, cost: 1500 } | ||
}; |