code: func (table requestCostTable) getCost(code, amount uint64) uint64 {
  	costs := table[code]
  	return costs.baseCost + amount*costs.reqCost
  }
docs: // getCost calculates the estimated cost for a given request type and amount