Skip to content

Conversation

@mijovic
Copy link
Collaborator

@mijovic mijovic commented Oct 20, 2025

No description provided.

@mijovic mijovic marked this pull request as draft October 20, 2025 09:53

SenderCreator private immutable _senderCreator = new SenderCreator();

ISscOpcodes private immutable _ssc = ISscOpcodes(address(0x665e930982A9a03c844641d453a2C3462ED7Ff41));
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploying bytecode 0x60a2600b5f3960a25ff3fe600734156097565b600d6070565b63e7837508811460435763346527bf8114604c57638315b35381146055576386c3ee6e8114605e5763b7987bb481146067575f5ffd5bd0805f5260205ff35bd1805f5260205ff35bd2805f5260205ff35bd3805f5260205ff35bd4805f5260205ff35b5f7c01000000000000000000000000000000000000000000000000000000005f3504905090565b80609f575f5ffd5b5056 with salt 0x769a9f24a3e8cd02f97cdc25df023d91b7440615a2e6126d91057f41b87cb7b2 using CreateX.deployCreate2

Comment on lines +32 to +38
int256 constant public SSC_STORAGE_SLOT_COST = 12800000000000000;
int256 constant public SSC_STORAGE_SLOT_REFUND = 12672000000000000;

int256 constant public SSC_ACCOUNT_COST = 12800000000000000;
int256 constant public SSC_ACCOUNT_REFUND = 12672000000000000;

int256 constant public SSC_CODE_CREATED_COST = 12800000000000000;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have to set correct values

@mijovic mijovic force-pushed the v0.7-monad-ssc-option1 branch from 4ffc61d to a946b64 Compare October 21, 2025 12:42
@mijovic mijovic force-pushed the v0.7-monad-ssc-option1 branch from a946b64 to 5628e7f Compare October 22, 2025 19:19
// this can be negative in cases of refunds
int256 netSSC = _netSSC() - preSSC;
// In case of negative netSSC msg.value must be higher than abs(netSSC)
uint256 sscCompensation = uint256(int256(msg.value) + netSSC);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The conversion would revert the whole bundle here in case of msg.value is smaller than the refund

@mijovic mijovic changed the title Handling ssc cost via stakes. Handling ssc cost Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant