Fathom Protocol
  • Introduction
  • FXD Stablecoin
    • FXD Smart Contract Architecture
    • Minting and Burning Mechanisms with LTV Ratio
    • Soft-Pegging to the US Dollar
    • Opening and closing position flows
    • BookKeeping mechanism
      • Stablecoin Accounting
      • Collateral Accounting
    • Liquidation
      • Fixed Spread Liquidation Strategy
      • Liquidation process walk through
    • Emergency Shutdown
    • Maths for position safety
    • Fee structure
    • Risk Management
    • Interfaces
      • ProxyWalletRegistry
      • ProxyWallet
        • FathomStablecoinProxyActions
      • CollateralPoolConfig
      • BookKeeper
      • FXD
      • LiquidationEngine
      • FlashMintModule
      • PriceFeed
      • ShowStopper
      • StabilityFeeCollector
      • SystemDebtEngine
      • AdminControls
    • Deployments
      • XDC Network
    • User Guides
      • Open FXD position
      • Top Up FXD Position
      • Repay and close FXD position
    • Fathom Stablecoin Smart Contracts
    • Fathom Stablecoin Subgraph
  • Vaults
    • Key Features
    • Definitions
    • Architecture
    • Fees
    • Workflows
    • Vault Management
    • Strategy Creation
    • Interfaces
      • Factory
      • Vault
      • BaseStrategy
      • TokenizedStrategy
    • Deployments
      • XDC Network
    • User Guides
      • Deposit and Withdraw in Vault
    • Fathom Vaults Smart Contracts
    • Fathom Vaults Subgraph
  • Lending
    • Core Concepts
    • Protocol Mechanics
    • Architecture
    • Interfaces
      • FmToken
      • VariableDebtToken
      • StableDebtToken
      • L2Pool
      • PoolAddressesProvider
    • User Guides
      • Supply, Borrow, Repay and Withdraw Asset
    • Deployments
      • XDC Network
    • Fathom Lending Smart Contracts
    • Fathom Lending Subgraph
  • DEX
    • Core Concepts
    • Architecture
    • Interfaces
      • Factory
      • Pair
      • Router
    • User Guides
      • Providing Liquidity
      • Swapping Assets
    • Deployments
      • XDC Network
    • Fathom DEX Smart Contracts
    • Fathom DEX Subgraph
  • DAO
    • DAO Structure
    • Governance Process
    • Staking Process
    • Treasury Management
    • Risk Management and Security Measures
    • Contributing to Fathom DAO
    • Interfaces
      • FTHM
      • Staking
        • Vault
        • RewardsCalculator
        • vFTHM
      • Governance
        • TimelockController
    • Deployments
      • XDC Network
    • User Guides
      • Staking
      • Proposing
      • Voting
    • Fathom DAO Smart Contracts
    • Fathom DAO Subgraph
  • Whitepaper
    • Version 1.0
  • Resources
  • FXD Deployments
  • FTHM Deployments
  • Privacy Policy
  • Terms of Service
Powered by GitBook

Copyright© Fathom App 2024.

On this page

Was this helpful?

Export as PDF
  1. FXD Stablecoin
  2. Interfaces

ProxyWallet

https://github.com/Into-the-Fathom/fathom-stablecoin-smart-contracts/blob/master/contracts/main/proxy-wallet/ProxyWallet.sol

Overview

The ProxyWallet serves as a flexible, owner-controlled wallet that can execute arbitrary transactions. It uses a ProxyActionsStorage to manage state and actions and leverages comprehensive access control via FathomAuth.

Events

  • LogSetAuthority (from FathomAuthEvents):

    • Emitted when the authority for this contract is set.

    • Parameters:

      • _authority (address indexed): The address of the new authority.

  • LogSetOwner (from FathomAuthEvents):

    • Emitted when the owner of the contract is changed.

    • Parameters:

      • _owner (address indexed): The address of the new owner.

  • LogNote (from FathomNote):

    • Emitted for each transaction executed through the proxy wallet, providing details of the operation.

    • Parameters:

      • sig (bytes4 indexed): The signature of the function called.

      • guy (address indexed): The address initiating the call.

      • foo (bytes32 indexed): Part of the call data.

      • bar (bytes32 indexed): Part of the call data.

      • wad (uint256): The value involved in the transaction.

      • fax (bytes): Full call data.

State Variables

  • proxyActionsStorage (ProxyActionsStorage):

    • The storage contract used for managing proxy actions and settings.

  • authority (IAuthority from FathomAuth):

    • The authority contract that checks permissions for actions.

  • owner (address from FathomAuth):

    • The owner of the contract, who has elevated privileges.

Functions

  • execute:

    • Executes a transaction via the proxy, allowing the wallet to interact with other contracts.

    • Parameters:

      • _data (bytes memory): The calldata or transaction data to be executed.

    • Returns:

      • _response (bytes memory): The return data from the executed call.

  • receive:

    • A fallback function to allow the contract to receive Ether directly.

PreviousProxyWalletRegistryNextFathomStablecoinProxyActions

Last updated 11 months ago

Was this helpful?