Thanks for writing in to Healthcare magic!
is not a drug for depression
, it's main use is to improve respiratory drive.
If you are taking it for depression then you need to revise the treatment in consultation with a physician.
The problem of chest dicomfort and rapid heart rate
are not the side effect profile of Modafinil, there may be some thing else.
Usual side effects of modafinil are-
Long term efficacy of Modafinil otherwise is good.
My advise is you should get a consultation and revision of your treatment soon.
I hope the advise would be helpful for you.