Send and Pull Token Log
Send Token Log
Send Token Log tracks when tokens are sent from a Safe wallet to another address. This is a critical operation that requires special attention as it represents tokens leaving the system.
Data Structure
The SendToken
log contains the following data:
tokenAddr
(string): Address of the token contract being sentto
(address): Destination addressamount
(uint256): Amount of tokens sent
Notes
SendToken operations are restricted to Safe owners only
The recipient address must be a registered owner of the Safe
These restrictions help prevent unauthorized token transfers
Pull Token Log
Pull Token Log tracks when tokens are pulled from an external address into a Safe wallet. This operation requires prior approval from the token holder.
Data Structure
The PullToken
log contains the following data:
tokenAddr
(string): Address of the token contract being pulledfrom
(address): Source addressamount
(uint256): Amount of tokens pulled
Implementation Details
The logs are emitted in their respective action contracts:
SendToken.sol
emits SEND_TOKEN logsPullToken.sol
emits PULL_TOKEN logs
Both use the logActionEvent
function from the Logger contract to ensure consistent log formatting and emission.
Last updated