NATURE OF BUSINESS AND SIGNIFICANT ACCOUNTING POLICIES - Calculation of basic and diluted earnings per share (Details) - USD ($) |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
May 31, 2018 |
May 31, 2017 |
May 31, 2018 |
May 31, 2017 |
|
| Accounting Policies [Abstract] | ||||
| Net income | $ (2,165,740) | $ 6,119 | $ (2,991,438) | $ (151,545) |
| Weighted average common shares outstanding: | ||||
| Basic (in shares) | 64,680,419 | 51,805,930 | 61,995,107 | 50,458,416 |
| Net effect of dilutive options (in shares) | 0 | 1,528,302 | 0 | 0 |
| Diluted (in shares) | 64,680,419 | 53,334,232 | 61,995,107 | 50,458,416 |
| Earnings per share: | ||||
| Basic (in dollars per share) | $ (0.03) | $ (0.05) | ||
| Diluted (in dollars per share) | $ (0.03) | $ (0.05) | ||