Closed gundas closed 7 years ago
The configureModule function uses schelling contract to call configure method on token and provider contracts - https://github.com/CORIONplatform/solidity/blob/master/moduleHandler.sol#L427
configureModule
schelling
configure
token
provider
It looks nasty, but it works as long as the token and provider contracts define the configure or a fallback function.
fallback
I guess a nicer way would be to add default configure function to module and to abstractModule.
module
abstractModule
Have soon done in https://github.com/CORIONplatform/solidity/blob/iFA-FIX . Modules have now standard configureModule function.
The
configureModule
function usesschelling
contract to callconfigure
method ontoken
andprovider
contracts - https://github.com/CORIONplatform/solidity/blob/master/moduleHandler.sol#L427It looks nasty, but it works as long as the
token
andprovider
contracts define theconfigure
or afallback
function.I guess a nicer way would be to add default
configure
function tomodule
and toabstractModule
.