export const TIER_THRESHOLDS = [
  { lo: 90000, rate: 40, num: 4 },
  { lo: 70000, rate: 30, num: 3 },
  { lo: 40000, rate: 20, num: 2 },
  { lo: 0,     rate: 10, num: 1 },
] as const;

export function tierRate(level: number): number {
  return level > 90000 ? 40 : level > 70000 ? 30 : level > 40000 ? 20 : 10;
}

export function tierNum(level: number): number {
  return level > 90000 ? 4 : level > 70000 ? 3 : level > 40000 ? 2 : 1;
}
