bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 10쪽 중 6쪽
ice
participant offchain as Off Chain
box On-chain
participant vault as apyUSD<br/>Vault
participant apxUSD
end
alice ->> vault: deposit(1000 apxUSD, alice)
activate vault
vault ->> vault: previewDeposit(1000 apxUSD) -> 970 apyUSD
vault ->> apxUSD: transferFrom(alice, vault, 1000)
vault ->> vault: mint 970 apyUSD to alice
vault -->> offchain: emits Deposit(alice, alice, alice, 1000, 970)
vault -->> alice: returns 970 apyUSD received
deactivate vault
note right of alice: Deposit complete immediately.<br/>No delay for locking.
```
#### Mint Success
Users specify the exact amount of apyUSD and aptUSD shares to receive and deposit the calculated apxUSD amount immediately.
```mermaid
sequenceDiagram
actor alice as Alice
participant vault as apyUSD<br/>Vault
participant apxUSD
participant offchain as Off Chain
box On-chain
participant vault
participant apxUSD
end
alice ->> vault: mint(970 apyUSD, alice)
activate vault
vault ->> vault: previewMint(970 apyUSD) = 1000 apxUSD
vault ->> apxUSD: transferFrom(alice, vault, 1000)
vault ->> vault: mint 970 apyUSD to alice
vault -->> offchain: emits Deposit(alice, alice, alice, 1000, 970)
vault -->> alice: returns 1000 apxUSD spent
deactivate vault
note right of alice: Mint complete immediately.<br/>No delay for locking.
```
#### Deposit Failure - Slippage Exceeded
When the slippage is exceeded on deposit or mint.
```mermaid
sequenceDiagram
actor alice as Alice
box On-chain
participant vault as apyUSD<br/>Vault
end
alice ->> vault: depositForMinShares(1000 apxUSD, alice, minSharesOut: 980 apyUSD)
activate vault
vault ->> vault: previewDeposit(1000 apxUSD) = 970 apyUSD
vault ->> vault: check slippage: 970 < 980 apyUSD
vault ->> alice: revert SlippageExceeded(980, 970)
deactivate vault
note right of alice: Transaction fails.<br/>Alice can adjust slippage<br/>and retry
```
#### Deposit Failure - Deny Listed
When the caller or receiver is on the deny list, the deposit operation reverts immediately.
```mermaid
sequenceDiagram
actor alice as Alice
box On-chain
participant vault as apyUSD<br/>Vault
participant denylist as AddressList<br/>(Deny List)
end
alice ->> vault: deposit(1000 apxUSD, bob)
activate vault
vault ->> denylist: contains(alice) → false
vault ->> denylist: contains(bob) → true
vault ->> alice: revert Denied(bob)
deactivate vault
note right of alice: Transaction fails.<br/>Alice is on the deny list.
```
# Unlocking
apyUSD holders can unlock their tokens to receive apxUSD. aptUSD holders can simply use the swap tool on the Apyx app to seamlessly hop from aptUSD to alqUSD to USDC in a single click. \
\
apyUSD and aptUSD is a synchronous ERC-4626 vault — withdrawals and redeems execute immediately and return **apxUSD\_unlock or alqUSD\_unlock** tokens.
### Flexible Unlocks for apyUSD
apyUSD unlocks support a more flexible redemption mechanism designed to improve liquidity and user optionality. When initiating a new unlock, users receive an onchain Unlock Receipt NFT representing their pending claim. Unlocks become claimable after 3 days, with an early unlock fee that declines linearly over time from 3.5% down to just 0.1%.
This mechanism allows users to:
* Exit faster when liquidity is needed
* Queue multiple unlock requests simultaneously
* Reduce fees by waiting longer before claiming
Looking ahead, unlock windows are expected to compress further as underlying digital credit instruments transition toward more frequent distributions.
{% hint style="warning" %}
You cannot cancel unlocking once it has been initiated and will only be able to convert apxUSD\_unlock to apxUSD after the cooldown period.
{% endhint %}
### Understanding Unlock Methods
The vault provides standard ERC-4626 methods for unlocking, offering flexibility in how users specify amounts:
**For Unlocking (Synchronous — returns apxUSD\_unlock):**
* **`withdraw(assets, receiver, owner)`**: Specify the exact apxUSD or alqUSD amount to receive after cooldown; burn calculated apyUSD and aptUSD shares immediately
* Use when: You know exactly how much apxUSD or alqUSD you want to unlock
* Example: "I want to unlock 1000 apxUSD"
* **`redeem(shares, receiver, owner)`**: Specify the exact apyUSD or aptUSD shares to burn; receive calculated apxUSD\_unlock or alqUSD\_unlock immediately
* Use when: You know exactly how many apyUSD or aptUSD shares you want to exit
* Example: "I want to redeem all 950 of my apyUSD shares"
After receiving apxUSD\_unlock and alqUSD\_unlock tokens, call `UnlockToken.redeem()` once the cooldown period has elapsed to receive apxUSD or alqUSD.
{% hint style="info" %}
Prefer to use the `withdrawForMaxShares` and `redeemForMinAssets` methods to limit price risk when unlocking apyUSD or aptUSD.
{% endhint %}
{% hint style="warning" %}
Multiple unlocks reset the cooldown period for apyUSD. For example, if you unlock 100 apxUSD you will receive apxUSD\_unlock that is convertable to apxUSD after the cooldown period. If you later unlock another 50 apxUSD the cooldown period will reset and you will have to wait the full period to completely unlock the 150 apxUSD.
{% endhint %}
### Price Controls on Unlocking
The apyUSD and aptUSD vault exposes withdraw and redeem methods with price controls to limit price risk between submitting a transaction and the transaction being included in a block:
* **`withdrawForMaxShares(uint256 assets, uint256 maxShares, address receiver)`**: Withdraws exact assets or reverts if more than max shares will be burned
* **`redeemForMinAssets(uint256 shares, uint256 minAssets, address receiver)`**: Redeems exact shares or reverts if less than min assets will be received
### Total Assets and Vested Yield
The apyUSD and aptUSD vault's `totalAssets()` function includes both:
* The vault's apxUSD and alqUSD balance (assets held directly in the vault)
* The `vestedAmount()` available in the LinearVestV0 contract
When a withdrawal is requested, the vault automatically pulls all vested yield from the vesting contract before processing the withdrawal, ensuring the exchange rate reflects the full accrued value and the vault has sufficient assets to fund the withdrawal.
#### Unlock Examples
1. Bob calls `apyUSD.withdraw(1000e18, bob, bob)`
2. apyUSD calculates shares based on `totalAssets()` which includes vested yield
3. apyUSD determines the exchange rate between assets and shares
4. Bob's apyUSD shares are burned immediately
5. 1000 apxUSD is deposited into the UnlockToken contract; Bob receives 1000 apxUSD\_unlock
6. After the cooldown period, Bob calls `UnlockToken.redeem(1000e18, bob, bob)` to receive 1000 apxUSD
### The apyUSD UnlockToken: Tokenized Escrow During Cooldown
During the cooldown period, unlocked apxUSD assets are held in the **UnlockToken** contract.
**How it works:**
* User calls `apyUSD.withdraw()` or `apyUSD.redeem()` — apyUSD shares are burned synchronously
* The apxUSD assets are deposited into the UnlockToken contract by the vault
* The user immediately receives apxUSD\_unlock tokens (UnlockToken shares), redeemable 1:1 for apxUSD after the cooldown period
* The apyUSD vault is configured as the operator for UnlockToken, allowing it to initiate the redeem request on behalf of the user immediately
* After the cooldown period, the user calls `UnlockToken.redeem()` to receive their apxUSD
{% hint style="info" %}
There is only one instance of UnlockToken and it is used exclusively by the apyUSD vault.
{% endhint %}
### Success & Failure Flows
#### Withdraw Success
Users specify the exact amount of apxUSD to receive after the cooldown period. apyUSD shares are burned immediately and apxUSD\_unlock tokens are returned.
```mermaid
sequenceDiagram
actor bob as Bob
participant vault as apyUSD<br/>Vault
participant unlockToken as UnlockToken
participant apxUSD
bob ->> vault: withdraw(1000 apxUSD, bob, bob)
activate vault
vault ->> vault: previewWithdraw(1000 apxUSD) → 970 apyUSD shares
vault ->> vault: pull vested yield from LinearVestV0
vault ->> vault: burn 970 apyUSD from bob
vault ->> unlockToken: deposit(1000 apxUSD, bob)
activate unlockToken
unlockToken -->> bob: mint 1000 apxUSD_unlock
deactivate unlockToken
vault ->> unlockToken: requestRedeem(1000, bob, bob)
vault -->> bob: returns 970 apyUSD burned
deactivate vault
note right of bob: Cooldown period begins
bob ->> unlockToken: redeem(1000 apxUSD_unlock, bob, bob)
activate unlockToken
unlockToken ->> apxUSD: transfer(bob, 1000)
unlockToken -->> bob: 1000 apxUSD received
deactivate unlockToken
```
#### Redeem Success
Users specify the exact amount of apyUSD shares to burn. The calculated apxUSD amount is deposited into UnlockToken and redeemable after the cooldown period.
```mermaid
sequenceDiagram
actor bob as Bob
participant vault as apyUSD<br/>Vault
participant unlockToken as UnlockToken
participant apxUSD
bob ->> vault: redeem(970 apyUSD, bob, bob)
activate vault
vault ->> vault: previewRedeem(970 apyUSD) → 1000 apxUSD
vault ->> vault: pull vested yield from LinearVestV0
vault ->> vault: burn 970 apyUSD from bob
vault ->> unlockToken: deposit(1000 apxUSD, bob)
activate unlockToken
unlockToken -->> bob: mint 1000 apxUSD_unlock
deactivate unlockToken
vault ->> unlockToken: requestRedeem(1000, bob, bob)
vault -->> bob: returns 1000 apxUSD queued
deactivate vault
note right of bob: Cooldown period begins
bob ->> unlockToken: redeem(1000 apxUSD_unlock, bob, bob)
activate unlockToken
unlockToken ->> apxUSD: transfer(bob, 1000)
unlockToken -->> bob: 1000 apxUSD received
deactivate unlockToken
```
#### Withdrawal Failure — Slippage Exceeded
When the slippage is exceeded on withdraw or redeem.
```mermaid
sequenceDiagram
actor bob as Bob
box On-chain
participant vault as apyUSD<br/>Vault
end
bob ->> vault: withdrawForMaxShares(1000 apxUSD, bob, maxSharesIn: 950 apyUSD)
activate vault
vault ->> vault: previewWithdraw(1000 apxUSD) = 970 apyUSD shares
vault ->> vault: check slippage: 970 > 950 apyUSD
vault ->> bob: revert SlippageExceeded(950, 970)
deactivate vault
note right of bob: Transaction fails.<br/>Bob can adjust slippage<br/>and retry
```
# Glossary
Find the definition below
{% hint style="info" %}
This glossary may be updated and expanded on an ongoing basis.
{% endhint %}
#### Assets <a href="#assets" id="assets"></a>
**apxUSD**
A semi-stable token backed by a basket of dividend yielding preferred shares and US treasury bonds held offchain and other stablecoins held onchain.
**apyUSD**
An ERC-4626 compliant tokenized vault that locks apxUSD and earns yield on the underlying assets.
**alqUSD**
The accounting asset for aptUSD.
**aptUSD**
A U.S. Treasury-backed yield-bearing token designed for onchain cash management, enabling users to earn yield on idle capital while keeping it readily deployable.
**APYX**
A future governance token that will be used to vote on parameters on the Apyx Protocol.
**Redemption Value**
The price at which all minting and redemption of apxUSD occurs, with a small spread for liquidity. Tracks the underlying basket of preferred shares and cash, dampened by the cash portion of the reserve.
**Total Collateral Value**
The full value of the reserve backing apxUSD, including the overcollateralization buffer. Replaces "NAV" on the transparency dashboard.
**Overcollateralization Buffer**
The gap between Total Collateral Value and Redemption Value. Held in preferred equity, not consumed during routine redemptions, and distributed pro-rata to holders in catastrophic wind-down scenarios.
**RFQ Redemption**
A Request for Quote redemption system that connects redemption requests with approved counterparties for competitive execution against the reserve, supplementing the automated primary-market redemption at Redemption Value.
#### Contracts & Components <a href="#contracts-and-components" id="contracts-and-components"></a>
**CommitToken**
An asynchronous tokenized vault used for locking tokens in exchange for points. The CommitToken extends ERC-4626 with ERC-7540 inspired asynchronous redemption functionality, enforcing a delayed unlocking period.
For example, users could deposit apxUSD into an apxUSD/USDC Curve pool, then deposit their Curve pool LP token into a CommitToken contract to lock their LP position and increase their points yield.
Commit tokens are always redeemable 1-1 for their underlying asset after the commit period.
**UnlockToken**
A special instance of the CommitToken contract that allows the apyUSD vault to initiate redemption requests on behalf of users. It acts as an operator for any user, enabling it to initiate redemption requests automatically when a user unlocks their apyUSD. The apyUSD contract uses the UnlockToken to enforce an unlocking delay by depositing the users apxUSD into the UnlockToken contract when the user redeems apyUSD for apxUSD. The user receives apxUSD\_unlock that is redeemable 1-1 for apxUSD after the unlocking period.
There is only one instance of an UnlockToken and it is used by the apyUSD contract.
**LinearVestV0**
A contract that receives yield deposits and vests them linearly over a configurable period. Only the vault contract can transfer (pull) vested yield. The apyUSD vault pulls yield on withdrawal.
**YieldDistributor**
A contract that receives yield from MinterV0 minting operations and deposits it to the Vesting contract. Acts as an intermediary between MinterV0 and LinearVestV0 to decouple minting and vesting, and allows for an operator role to trigger yield to be deposited into the LinearVestV0 contract.
**MinterV0**
V0 of the minting contract used to enforce minting controls, like max mint size, max mint per period, etc.
#### Standards <a href="#standards" id="standards"></a>
* **ERC-7540:** Ethereum standard for asynchronous tokenized vaults, extending ERC-4626 with request/claim flows for operations requiring delays or offchain processing.
# Audits
<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-cover-dark data-type="image">Cover image (dark)</th><th data-hidden></th><th data-hidden data-card-cover data-type="image">Cover image</th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td>Halborn - 2026-06</td><td data-object-fit="contain"><a href="https://1731598137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6XK8DXRkFImTNSbo86o2%2Fuploads%2Fgit-blob-374e2c1a6cbd9c0b476a2ffd0ec51d8286872dab%2Fhalborn-logo-white.png?alt=media">halborn-logo-white.png</a></td><td>Halborn - 2026-06</td><td data-object-fit="contain"><a href="https://1731598137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6XK8DXRkFImTNSbo86o2%2Fuploads%2Fgit-blob-bbc711a81987c229c27d8d3e168a8e91bfb1db42%2Fhalborn-logo-black.png?alt=media">halborn-logo-black.png</a></td><td><a href="https://www.halborn.com/audits/apyx/smart-contract-assessment-02a20a">https://www.halborn.com/audits/apyx/smart-contract-assessment-02a20a</a></td></tr><tr><td>Quantstamp - 2026-04</td><td><a href="https://1731598137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6XK8DXRkFImTNSbo86o2%2Fuploads%2F7LdqPeaD1T0Tm7NZDJAo%2Fquantstamp-logo-dark.png?alt=media&token=bf6ee849-947e-4141-9608-6dc6e71710c6">quantstamp-logo-dark.png</a></td><td>Quantstamp - 2026-04</td><td data-object-fit="cover"><a href="https://1731598137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6XK8DXRkFImTNSbo86o2%2Fuploads%2F9D0iZWQDU5dZhlX4NQNC%2Fquantstamp-logo-light.png?alt=media&token=a1725bfc-103a-41e6-b458-51a7ba2deda7">quantstamp-logo-light.png</a></td><td><a href="https://certificate.quantstamp.com/full/apyx-apx-usd-apy-usd-bridged-token/22bc8135-312c-452d-b885-754645a97076/index.html">https://certificate.quantstamp.com/full/apyx-apx-usd-apy-usd-bridged-token/22bc8135-312c-452d-b885-754645a97076/index.html</a></td></tr><tr><td>Certora - 2026-03</td><td><a href="https://1731598137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6XK8DXRkFImTNSbo86o2%2Fuploads%2F3fDJOiu0IU4ibDUt6Q1i%2Fcertora-logo-dark2.png?alt=media&token=c60e13c8-b141-41aa-b73d-a6f858364d70">certora-logo-dark2.png</a></td><td>Certora - 2026-03</td><td data-object-fit="cover"><a href="https://1731598137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6XK8DXRkFImTNSbo86o2%2Fuploads%2FACoBHkrFRlPB2rFLOTb4%2Fcertora-logo-light2.png?alt=media&token=e5c6c892-9cc3-41af-9c2d-acc3a7a8bce9">certora-logo-light2.png</a></td><td><a href="https://www.certora.com/reports/apyx-apxusd">https://www.certora.com/reports/apyx-apxusd</a></td></tr><tr><td>Zellic - 2026-03</td><td><a href="https://1731598137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6XK8DXRkFImTNSbo86o2%2Fuploads%2FG1050mwcKmLr2pCSGaJF%2Fzellic_white.png?alt=media&token=b027fc7e-62f5-4a60-b761-af477c2a7728">zellic-logo-white.png</a></td><td></td><td><a href="https://1731598137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6XK8DXRkFImTNSbo86o2%2Fuploads%2Fkswbe9e8AjVm0EEM9HE1%2Fzellic_black.png?alt=media&token=e794600b-c8d9-49e8-ab9c-660320131e6c">zellic-logo-black.png</a></td><td><a href="https://github.com/Zellic/publications/blob/master/Apyx%20Stablecoin%20-%20Zellic%20Audit%20Report.pdf">https://github.com/Zellic/publications/blob/master/Apyx%20Stablecoin%20-%20Zellic%20Audit%20Report.pdf</a></td></tr><tr><td>Quantstamp - 2026-02</td><td><a href="https://1731598137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6XK8DXRkFImTNSbo86o2%2Fuploads%2F7LdqPeaD1T0Tm7NZDJAo%2Fquantstamp-logo-dark.png?alt=media&token=bf6ee849-947e-4141-9608-6dc6e71710c6">quantstamp-logo-dark.png</a></td><td>Quantstamp - 2026-02</td><td data-object-fit="cover"><a href="https://1731598137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6XK8DXRkFImTNSbo86o2%2Fuploads%2F9D0iZWQDU5dZhlX4NQNC%2Fquantstamp-logo-light.png?alt=media&token=a1725bfc-103a-41e6-b458-51a7ba2deda7">quantstamp-logo-light.png</a></td><td><a href="https://certificate.quantstamp.com/full/apx-usd-stablecoin/2a5be074-3d9f-49e7-aa08-46fb5f1e5bd6/index.html">https://certificate.quantstamp.com/full/apx-usd-stablecoin/2a5be074-3d9f-49e7-aa08-46fb5f1e5bd6/index.html</a></td></tr></tbody></table>
# Smart Contract Addresses
## Ethereum Mainnet
| Contract | Address |
| -------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| apxUSD | [`0x98A878b1Cd98131B271883B390f68D2c90674665`](https://etherscan.io/address/0x98A878b1Cd98131B271883B390f68D2c90674665) |
| apyUSD | [`0x38EEb52F0771140d10c4E9A9a72349A329Fe8a6A`](https://etherscan.io/address/0x38EEb52F0771140d10c4E9A9a72349A329Fe8a6A) |
| aptUSD | [`0x093df218d70ea6036afa26704a1c70d12010b908`](https://etherscan.io/token/0x093df218d70ea6036afa26704a1c70d12010b908) |
| alqUSD | [`0x15c91ebccb2c659b3a208214a103cbcb9d5f9671`](https://etherscan.io/token/0x15c91ebccb2c659b3a208214a103cbcb9d5f9671) |
| UnlockToken | [`0x93775E2dFa4e716c361A1f53F212c7AE031BF4e6`](https://etherscan.io/address/0x93775E2dFa4e716c361A1f53F212c7AE031BF4e6) |
| ApyUSDRateView | [`0xCABa36EDE2C08e16F3602e8688a8bE94c1B4e484`](https://etherscan.io/address/0xCABa36EDE2C08e16F3602e8688a8bE94c1B4e484) |
| CommitToken: apxUSD | [`0x17122d869d981d184118B301313BCD157c79871e`](https://etherscan.io/address/0x17122d869d981d184118B301313BCD157c79871e) |
| Curve: apxUSD-USDC | [`0xE1B96555BbecA40E583BbB41a11C68Ca4706A414`](https://etherscan.io/address/0xE1B96555BbecA40E583BbB41a11C68Ca4706A414) |
| CommitToken: apxUSD-USDC | [`0xdfC3cF7E540628a52862907DC1AB935Cd5859375`](https://etherscan.io/address/0xdfC3cF7E540628a52862907DC1AB935Cd5859375) |
| CommitToken: apyUSD-apxUSD | [`0x55095f69C30E58290eCaA80F44019557d2bC4A60`](https://etherscan.io/address/0x55095f69C30E58290eCaA프로젝트로 돌아가기