Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 541 Bytes

File metadata and controls

18 lines (14 loc) · 541 Bytes

SIMPLE_CONTRACT_MULTISIGN

Simple abstract contract that allows to implement multisign easily

Usage example:

function openTrade(bool _open) external multiSignReq {   
  if(multiSign()) {  
      isTradeOpened = _open;  
  }  
}  

How it works:

multiSignReq modifier that ensures that you are an owner and multiSign() was executed
multiSign() stores the transaction if not previously stored and adds the owner sign

Once the required number of owners confirm the transaction multSign returns true