if staking a tokenX the contract needs to set the state variables accordingly, and if staking a tokenY set the other state variables. i have various helper functions for this but was wondering what the most gas efficient way of doing this was. option 1: two separate functions for each specific call option 2: one function that takes the param of the token type (X | Y) and has an if X ... else ...
If option 2 is more gas efficient what is the best way to store X and Y? bool: true | false, int: 0 | else string: 'x'|else ? just curious and am looking at various ways for optimizing gas