Essence Finance
    • Introduction
  • Protocol
    • Peg Stabilty
    • Collateralization
    • Decentralization
  • TOKENOMICS
    • ZEN
    • Distribution
    • Stake
  • Protocol Controlled Value
    • Protocol Controlled Value (PCV)
    • PCV Management
    • PCV Deposits
  • Governance
    • Essence DAO
    • Governance Phases
    • Access Control
    • Roles
  • Smart Contracts
    • Contract Addresses
    • Audits
  • Development
    • Smart Contracts API
      • Chi
        • IChi
      • Minter
        • IPCVEquityMinter
        • PCVEquityMinter
        • RateLimitedMinter
      • Core
        • Core
        • ICore
        • IPermissions
        • IPermissionsRead
        • Permissions
        • ZenRoles
      • Dao
        • Governor
          • EssenceDAO
        • Timelock
          • EssenceDAOTimelock
          • OptimisticTimelock
          • Timelock
      • External
        • Decimal
        • WETH9
      • Libs
        • CoreRefPauseableLib
        • UintArrayOps
      • Oracle
        • ChainlinkOracleWrapper
        • CompositeOracle
        • ConstantOracle
        • ICollateralizationOracle
        • ICollateralizationOracleWrapper
      • Pcv
        • IPCVDeposit
        • IPCVDepositBalances
        • IPCVGuardian
        • IPCVSwapper
        • PCVDeposit
        • PCVGuardian
      • Peg
        • FixedPricePSM
        • IPegStabilityModule
        • IPriceBound
        • IPSMRouter
        • PegStabilityModule
        • PriceBoundPSM
        • PSMRouter
      • Refs
        • CoreRef
        • ICoreRef
        • IOracleRef
        • IUniRef
        • OracleRef
        • UniRef
      • Timelocks
        • ITimelockedDelegator
        • ITokenTimelock
        • LinearTimelockedDelegator
        • LinearTokenTimelock
        • QuadraticTimelockedDelegator
        • QuadraticTimelockedSubdelegator
        • QuadraticTokenTimelock
        • TimelockedDelegator
        • TokenTimelock
      • Utils
        • RateLimited
      • Zen
        • IZenMinter
        • Zen
        • ZenMinter
Powered by GitBook
On this page
  • Functions
  • swap
  • setReceivingAddress
  • tokenSpent
  • tokenReceived
  • tokenReceivingAddress
  • Events
  • UpdateReceivingAddress
  1. Development
  2. Smart Contracts API
  3. Pcv

IPCVSwapper

Functions

swap

function swap() external

setReceivingAddress

function setReceivingAddress(
    address _tokenReceivingAddress
) external

Parameters

Name
Type
Description

_tokenReceivingAddress

address

tokenSpent

function tokenSpent() external returns (address)

tokenReceived

function tokenReceived() external returns (address)

tokenReceivingAddress

function tokenReceivingAddress() external returns (address)

Events

UpdateReceivingAddress

event UpdateReceivingAddress(
    address oldTokenReceivingAddress,
    address newTokenReceivingAddress
)

Parameters

Name
Type
Description

oldTokenReceivingAddress

address

newTokenReceivingAddress

address

### Swap

event Swap(
    address _caller,
    address _tokenSpent,
    address _tokenReceived,
    uint256 _amountSpent,
    uint256 _amountReceived
)

Parameters

Name
Type
Description

_caller

address

_tokenSpent

address

_tokenReceived

address

_amountSpent

uint256

_amountReceived

uint256

PreviousIPCVGuardianNextPCVDeposit

Last updated 1 year ago