We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently when Issuer.sol is upgraded and released, the Synths have to be re-added via 40+ individual transactions using addSynth per synth.
Issuer.sol
addSynth
function addSynth(ISynth synth) external onlyOwner { bytes32 currencyKey = synth.currencyKey(); require(synths[currencyKey] == ISynth(0), "Synth already exists"); require(synthsByAddress[address(synth)] == bytes32(0), "Synth address already exists"); availableSynths.push(synth); synths[currencyKey] = synth; synthsByAddress[address(synth)] = currencyKey; emit SynthAdded(currencyKey, address(synth)); }
We can add a addSynths(Isynth[] synths) function to add the synths in batches on deployment cutting down the cost of deploying a new Issuer contract.
addSynths(Isynth[] synths)
The text was updated successfully, but these errors were encountered:
jjgonecrypto
No branches or pull requests
Currently when
Issuer.sol
is upgraded and released, the Synths have to be re-added via 40+ individual transactions usingaddSynth
per synth.We can add a
addSynths(Isynth[] synths)
function to add the synths in batches on deployment cutting down the cost of deploying a new Issuer contract.The text was updated successfully, but these errors were encountered: