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 sent

  • to (address): Destination address

  • amount (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 pulled

  • from (address): Source address

  • amount (uint256): Amount of tokens pulled

Implementation Details

The logs are emitted in their respective action contracts:

  • SendToken.sol emits SEND_TOKEN logs

  • PullToken.sol emits PULL_TOKEN logs

Both use the logActionEvent function from the Logger contract to ensure consistent log formatting and emission.

Last updated