CONVERTIBLE DEBT - Fair value of derivative liability (Details) - Derivative liability  | 
12 Months Ended | 
|---|---|
| 
 Dec. 31, 2022  
USD ($) 
 | |
| Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] | |
| Balance at the beginning | $ 5,379,878 | 
| Change in fair value of the derivative liability | $ (2,643,123) | 
| Fair Value, Liability, Recurring Basis, Unobservable Input Reconciliation, Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration] | Gain (Loss) from Change in Fair Value of Financial Instruments | 
| Gain on extinguishment of the derivative liability | $ (2,741,058) | 
| Foreign exchange loss | $ 4,303 | 
| X | ||||||||||
- Definition Amount of gain (loss) from foreign exchange loss measured at fair value on recurring basis using unobservable input (level 3). No definition available. 
  | 
| X | ||||||||||
- Definition Amount of gain on extinguishment of the derivative liability measured at fair value on recurring basis using unobservable input (level 3). No definition available. 
  | 
| X | ||||||||||
- Definition A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period. No definition available. 
  | 
| X | ||||||||||
- Definition Amount of gain (loss) recognized in income from liability measured at fair value on recurring basis using unobservable input (level 3). Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  | 
| X | ||||||||||
- Definition Fair value of financial instrument classified as a liability measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
  | 
| X | ||||||||||
- Definition Indicates line item in statement in which net income is reported that includes gain (loss) from liability measured at fair value using unobservable input (level 3). Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  | 
| X | ||||||||||
- Details 
  |