You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Synthetix contract is permissioned to invoke issueSynths and burnSynths on issuer.sol. However these functions can be invoked directly via the issuer contract instead of jumping through Synthetix first.
Synthetix.sol
function issueSynths(uint amount) external optionalProxy {
return issuer().issueSynths(messageSender, amount);
}
function issueMaxSynths() external optionalProxy {
return issuer().issueMaxSynths(messageSender);
}
function burnSynths(uint amount) external optionalProxy {
return issuer().burnSynths(messageSender, amount);
}
issuer.sol
function issueSynths(address from, uint amount)
external
onlySynthetix
// No need to check if price is stale, as it is checked in issuableSynths.
{
Remove or override functions for access direct via issuer.sol
modifier onlySynthetix() {
require(msg.sender == address(synthetix()), "Issuer: Only the synthetix contract can perform this action");
_;
}
The text was updated successfully, but these errors were encountered:
Currently Synthetix contract is permissioned to invoke issueSynths and burnSynths on issuer.sol. However these functions can be invoked directly via the issuer contract instead of jumping through Synthetix first.
Synthetix.sol
issuer.sol
Remove or override functions for access direct via issuer.sol
The text was updated successfully, but these errors were encountered: