Common Transactions
This is a list of the most common user-facing transactions possible in the PERI Finance ecosystem, and the events they emit on success.
Staking (Minting/Issuing) pUSD
Called contract: ProxyERC20
Target (underlying) contract: PeriFinance
Methods:
issuePynths(uint256 amount)
issuePynthsOnBehalf(address user, uint256)
issueMaxPynths()
issueMaxPynthsOnBehalf(address user)
Events Emitted:
On a successful transaction, the following events occur:
Transfer
from0x0
toaccount
foramount
emitted onProxypUSD
Issued
amount
toaccount
emitted onProxypUSD
IssuanceDebtRatioEntry
emitted onProxyFeePool
Unstaking (Burning) pUSD
More info
Check out our unstaking walkthru for more information
Called contract: ProxyERC20
Target (underlying) contract: PeriFinance
Methods:
burnPynths(uint256 amount)
burnPynthsOnBehalf(address user, uint256 amount)
burnPynthsToTarget()
burnPynthsToTargetOnBehalf(address user)
Events Emitted:
On a successful transaction, the following events occur:
Transfer
fromaccount
to0x0
foramount
emitted onProxypUSD
Burned
amount
fromaccount
emitted onProxypUSD
IssuanceDebtRatioEntry
emitted onProxyFeePool
Claiming Fees
Check out our claiming walkthrough for more information
Called contract: ProxyFeePool
Target (underlying) contract: FeePool
Methods:
claimFees()
claimOnBehalf(address user)
Events Emitted:
On a successful transaction, the following events occur:
Transfer
fromFEE_ADDRESS
to0x0
foramount
emitted onProxypUSD
Burned
amount
fromFEE_ADDRESS
emitted onProxypUSD
Transfer
from0x0
toaccount
foramount
emitted onProxypUSD
Issued
amount
toaccount
emitted onProxypUSD
VestingEntryCreated
emitted onRewardEscrow
FeesClaimed
emitted onProxyFeePool
Trading (Exchanging) pynths
Check out our trading walkthrough for more information
Called contract: ProxyERC20
Target (underlying) contract: PeriFinance
Methods:
exchange(bytes32 src, uint256 fromAmount, bytes32 dest)
exchangeOnBehalf(address user, bytes32 src, uint256 fromAmount, bytes32 dest)
Events Emitted:
On a successful transaction, the following events occur:
Fee Reclamation
If fees are owing on the src
pynth, these events come first:
Transfer
fromaccount
to0x0
forfeesOwing
emitted onProxy<pynth>
for thesrc
pynth.Burned
feesOwing
fromaccount
emitted onProxy<pynth>
for thesrc
pynth.ExchangeReclaim
fromaccount
forfeesOwing
onsrc
synth emitted onProxySynthetix
Else if fees are owed on the src
pynth, then these events come first:
Transfer
from0x0
toaccount
forfeesOwed
emitted onProxy<pynth>
for thesrc
pynth.Issued
feesOwed
toaccount
emitted onProxy<synth>
for thesrc
synth.ExchangeRebate
fromaccount
forfeesOwed
onsrc
pynth emitted onProxySynthetix
For every exchange, the following events then occur:
Transfer
fromaccount
to0x0
forfromAmount
emitted onProxy<pynth>
for thesrc
pynth.Burned
fromAmount
fromaccount
emitted onProxy<pynth>
for thesrc
pynth.Transfer
from0x0
toaccount
fortoAmount - fee
emitted on onProxy<pynth>
for thedest
pynth.Issued
toAmount - fee
toaccount
emitted onProxy<pynth>
for thedest
pynth.Transfer
from0x0
toFEE_ADDRESS
forfee
emitted onProxypUSD
Issued
amount
toFEE_ADDRESS
emitted onProxypUSD
PynthExchange
foraccount
emitted onProxySynthetix
Last updated