Skip to content

Commit

Permalink
Remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSparksCode committed Nov 16, 2023
1 parent 01d50db commit 1ee2cee
Showing 1 changed file with 0 additions and 76 deletions.
76 changes: 0 additions & 76 deletions src/contracts/atlas/SafetyLocks.sol
Original file line number Diff line number Diff line change
Expand Up @@ -38,82 +38,6 @@ abstract contract SafetyLocks is Storage, FastLaneErrorsEvents {
if(!success) revert SafetyLocksLibError();
}

// function _initializeEscrowLock(UserOperation calldata userOp, address executionEnvironment, address bundler, uint256 gasLimit) internal {
// _checkIfUnlocked();

// uint256 activeParties;
// activeParties = activeParties.markActive(Party.Bundler);
// activeParties = activeParties.markActive(Party.Solver);

// uint256 bundlerIndex = uint256(Party.Bundler);

// // Check for proxies
// // NOTE: Order is important here so that we can loop through these later without having to go backwards to find final proxy
// // Builder proxy
// if (block.coinbase == bundler) {
// activeParties = activeParties.markActive(Party.Builder);
// ledgers[uint256(Party.Builder)] = Ledger({
// balance: 0,
// contributed: 0,
// requested: 0,
// status: LedgerStatus.Proxy,
// proxy: Party.Bundler
// });

// } else if (block.coinbase == userOp.from) {
// activeParties = activeParties.markActive(Party.Builder);
// ledgers[uint256(Party.Builder)] = Ledger({
// balance: 0,
// contributed: 0,
// requested: 0,
// status: LedgerStatus.Proxy,
// proxy: Party.User
// });
// }

// // Bundler proxy
// if (bundler == userOp.from) {
// // Bundler already marked active
// ledgers[uint256(Party.Bundler)] = Ledger({
// balance: 0,
// contributed: 0,
// requested: 0,
// status: LedgerStatus.Proxy,
// proxy: Party.User
// });
// bundlerIndex = uint256(Party.User);
// }

// // Initialize Ledger
// int64 iGasLimit = int64(uint64(gasLimit));

// if (msg.value != 0) {
// int64 bundlerDeposit = int64(uint64(msg.value / tx.gasprice));
// ledgers[bundlerIndex] = Ledger({
// balance: 0,
// contributed: bundlerDeposit,
// requested: 0 - bundlerDeposit - iGasLimit,
// status: LedgerStatus.Active,
// proxy: Party(bundlerIndex)
// });
// } else {
// ledgers[bundlerIndex] = Ledger({
// balance: 0,
// contributed: 0,
// requested: 0 - iGasLimit,
// status: LedgerStatus.Active,
// proxy: Party(bundlerIndex)
// });
// }

// // Initialize the Lock
// lock = Lock({
// activeEnvironment: executionEnvironment,
// activeParties: uint16(activeParties),
// startingBalance: uint64((address(this).balance - msg.value) / tx.gasprice)
// });
// }

function _buildEscrowLock(
DAppConfig calldata dConfig,
address executionEnvironment,
Expand Down

0 comments on commit 1ee2cee

Please sign in to comment.