Mohammad Parvez, 22, pleaded guilty in February to being concerned in the supply of Class B drugs.
Sentencing in the case was yesterday deferred until January 27, but the court ruled that Parvez's criminal lifestyle meant it was entitled to confiscate income and assets gained during the past six years as being the proceeds of crime.
A confiscation order for 17,575.15 was made.
Area Procurator Fiscal for Lothian and Borders Morag McLaughlin said: "The Proceeds of Crime legislation plays a significant role in disrupting serious and organised crime in Scotland.
"We will keep working hard to ensure that crime does not pay"