A city drug dealer was jailed for two years at Dundee Sheriff Court.
Mark Dolderer, 45, of Albert Street, was found with 2,910 worth of cocaine when police raided his home on a drugs warrant.
Officers also found an eight-plant cannabis cultivation after forcing the door of a locked room in the flat.
The Crown estimated the top value of the plants was 3,840 should they have reached maturity.
Dolderer previously admitted that on April 26, at his home address, he was concerned in the supply of cocaine and production of cannabis.
Fiscal Depute Eilidh Robertson said: “Police officers attended the accused’s home with a search warrant under the Misuse of Drugs Act. The accused was traced in the communal close area and a wallet containing 345 was found in his possession. Entry was gained to the flat and a search was carried out.”
Two bags containing roughly 27 grams of cocaine each were recovered from the pocket of a jacket hanging in the hallway.
Police found a snap-top bag with 3.2 grams of cocaine in the living-room, along with a smaller knotted bag containing 0.79 grams of the Class A drug.
They also recovered a large snap-top plastic bag containing a quantity of small plastic bags and scales with traces of cocaine.
Ms Robertson continued: “One of the two bedrooms was locked and there was no handle on the door.
“Entry was forced to that room and there was a cannabis cultivation. There were eight plants along with paraphernalia for heating, lighting and ventilation.”
The court was told police experts had valued the cocaine recovered in total to have a potential illicit worth of between 2,330 and 2,910 and that the quantity recovered along with the scales indicated Dolderer was involved in the supply of cocaine.
The experts valued the cannabis cultivation as having a potential illicit worth of between 1,280 and 3,840.
Solicitor Jim Laverty said his client understood a custodial sentence was inevitable.
He said: “He had managed to source cocaine at a reasonable price and Mr Dolderer and an acquaintance entered into an agreement whereby the cocaine was purchased by Mr Dolderer and split between he and his friend.”
Mr Laverty said the cannabis was for his client’s own personal use.
Sheriff McFarlane sentenced Dolderer to 24 months’ imprisonment and ordered forfeiture of the drugs, 345 cash and drugs paraphernalia.