Near-One / rainbow-token-connector

ERC-20/NEP-141 Token Connector for Rainbow Bridge
62 stars 18 forks source link

FT connector: improve pausability for Solidity contracts #133

Closed sept-en closed 2 years ago

sept-en commented 2 years ago

Currently, FT-connector's contracts use the PausableUpgradable contract implemented by OZ to pause functions. The drawback is that this way all the functions marked with the modifier will be paused/unpaused. We need to have the ability to pause only some specific functions. For that purpose, we can use the AdminControlled contract, the same way as it's used for ERC20Locker.