LogoLogo
Visit WebsiteLaunch App
  • Introduction
    • Overview
    • Getting Setup
      • Creating a Wallet
      • Security Practices
  • Product
    • Strategies
      • Conservative Yield V1
      • Balanced Yield V1
      • Advanced Yield V1
    • Nexus Mutual Cover
    • Technical Architecture
      • Technical Overview
      • Security and Authentication
      • Key Components
        • Action Smart Contracts
        • BravaGuard
        • Fee Take Safe Module
        • Smart Safe Account
        • Sequence Executor
        • Logging
          • Balance Update Log
          • BuyCover Log
          • Curve3PoolSwap Log
          • Send and Pull Token Log
    • Fees
    • Audits
  • Resources
    • Contracts
    • Website
    • Glossary
  • Socials
    • X (Twitter)
    • Discord
    • Telegram
Powered by GitBook
On this page
  • Send Token Log
  • Pull Token Log
  • Implementation Details
  1. Product
  2. Technical Architecture
  3. Key Components
  4. Logging

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.

PreviousCurve3PoolSwap LogNextFees

Last updated 6 months ago