sirenmarkets / core

SIREN Core Smart Contracts
https://sirenmarkets.com/
GNU General Public License v3.0
42 stars 12 forks source link

Fixed approval for series deployer #156

Closed MysticDakra closed 2 years ago

MysticDakra commented 2 years ago

I changed the approval from msg.sender to address(this) because we should be giving approval to the deployer contract not to the sender because we need to send reaming tokens back to the user from the deployer.