code: func (swap *Swap) setParams(local *Params) {
  
  	if swap.Sells {
  		swap.In.AutoCash(local.AutoCashInterval, local.AutoCashThreshold)
  		log.Info(fmt.Sprintf("<%v> set autocash to every %v, max uncashed limit: %v", swap.proto, local.AutoCashInterval, local.AutoCashThreshold))
  	} else {
  		log.Info(fmt.Sprintf("<%v> autocash off (not selling)", swap.proto))
  	}
  	if swap.Buys {
  		swap.Out.AutoDeposit(local.AutoDepositInterval, local.AutoDepositThreshold, local.AutoDepositBuffer)
  		log.Info(fmt.Sprintf("<%v> set autodeposit to every %v, pay at: %v, buffer: %v", swap.proto, local.AutoDepositInterval, local.AutoDepositThreshold, local.AutoDepositBuffer))
  	} else {
  		log.Info(fmt.Sprintf("<%v> autodeposit off (not buying)", swap.proto))
  	}
  }
docs: // setParams - caller holds the lock