ConvexityProtocol icon indicating copy to clipboard operation
ConvexityProtocol copied to clipboard

Add a require statement

Open kangaroosterus opened this issue 5 years ago • 0 comments

https://github.com/aparnakr/OptionsProtocol/blob/9363067b23278cd6d919cc0dad8ae0d4b489491f/contracts/OptionsFactory.sol#L124

Check if the same asset is being added. Something like:

require( tokens[_asset] != ERC20(_addr), ...)

kangaroosterus avatar Feb 12 '20 00:02 kangaroosterus