USDD Docs
  • INTRODUCTION
    • What is the new version of USDD?
    • What is USDDOLD?
    • Why upgrade USDD?
    • Core Features
    • Collateral Asset Contract Addresses
  • Ecosystem Migration Progress
  • SYSTEM ARCHITECTURE
    • System Architecture
  • USER GUIDE
    • Getting Started
    • Open a Vault
    • Manage a Vault
    • Close a Vault
    • Risk Alert
    • Liquidation
    • Collateral Auction
    • PSM (Peg Stability Module)
    • Migrate
  • DEVELOPERS
    • Glossary
    • Core Contracts
      • Vat
      • Dog
      • Clip
      • Spot
      • Jug
      • Median
      • OSM
      • Proxy contract
      • PSM
      • Migrate
    • Deployment Addresses
    • Liquidation & Auction
      • Key Features of Liquidation
      • Example Process
      • Benefits
    • Oracle
  • GOVERNANCE
    • Overview
  • SECURITY
    • Secure Framework
    • Audits
  • LRGALS
    • Terms of Use
    • Privacy Policy
Powered by GitBook
On this page
  • Purpose
  • Key Methods
Export as PDF
  1. DEVELOPERS
  2. Core Contracts

Proxy contract

Purpose

  • The DSProxy contract allows users to execute code on their behalf using a persistent proxy address.

  • It simplifies complex multi-step operations by enabling atomic execution within the context of the proxy’s identity.

  • Ownership of the proxy is flexible and can be transferred, supporting dynamic models like multisignature wallets.

Key Methods

  • execute(bytes memory _code, bytes memory _data)

    • If _code corresponds to a cached contract, it is executed directly; otherwise, the contract is deployed and cached before execution.

    • _data specifies the calldata to be sent to the contract.

    • Emits an Execute event upon successful execution.

  • execute(address _target, bytes memory _data)

    • Directly executes a specified contract (_target) with provided calldata (_data).

    • Requires the caller to have the necessary auth permissions.

PreviousOSMNextPSM

Last updated 4 months ago