How do i change ratios?

How do i make a system where the gain of a currency is 1:1 to the thing getting reset? Like a claiming system.

nvmd just change the getPointgen value to a higher number