Skip to content

avs specific contracts for the Ether.fi protocol

Notifications You must be signed in to change notification settings

etherfi-protocol/avs-smart-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ether.fi AVS Smart Contracts

Ether.fi utilizes a contract based AVS operator instead of an EOA in order to enable multiple security and efficiency improvements when working with a large number of eigenpods and AVS's

Each operator contract is a designed to be a simple forwarding contract

Whitelisting an operation for an operator

// specify which calls an node runner can make against which target contracts through the operator contract
function updateAllowedOperatorCalls(uint256 _operatorId, address _target, bytes4 _selector, bool _allowed) external onlyAdmin {
    allowedOperatorCalls[_operatorId][_target][_selector] = _allowed;
    emit AllowedOperatorCallsUpdated(_operatorId, _target, _selector, _allowed);
}

Tracking operator actions

All forwarded operator actions will emit the following event

event ForwardedOperatorCall(uint256 indexed id, address indexed target, bytes4 indexed selector, bytes data, address sender);

This can be used to track which actions have been taken by which operators

About

avs specific contracts for the Ether.fi protocol

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published