Skip to main content

Quick reference for admins, curators, and allocators operating an MYT vault.

Contract Structure and Roles

The MYT Admin assigns curators and allocators. Curators operate via the Curator contract. Allocators operate via the Allocator contract.

Allocation Flow

Start: Allocate to Strategy
CheckKillSwitch On?
Yes
setKillSwitch(false)
NoContinue to next step
CheckCap Needs Raising?
Yes
submitIncreaseAbsoluteCap(strategy, amount)
increaseAbsoluteCap(strategy, amount)
submitIncreaseRelativeCap(strategy, amount)
increaseRelativeCap(strategy, amount)
NoContinue to next step
Allocateallocate(strategy, amount)
Done

Reference: Amount Encoding

TokenDecimalsExample (1 unit)
USDC61_000_000
wETH181_000_000_000_000_000_000
Relative Cap (100%)181e18

All amounts are uint256.

Quick Reference: Key Functions

MYT Contract (Owner only)

FunctionDescription
setKillSwitch(bool)Enable/disable the kill switch
setCurator(address)Assign the Curator role
setIsAllocator(address, bool)Assign/revoke the Allocator role

Curator Contract (Curator role)

StepFunctionNotes
1 of 2submitIncreaseAbsoluteCap(strategy, amount)Must call before actual txn
2 of 2increaseAbsoluteCap(strategy, amount)Uses token decimals (USDC=6, wETH=18)
1 of 2submitIncreaseRelativeCap(strategy, amount)Must call before actual txn
2 of 2increaseRelativeCap(strategy, amount)100% = 1e18

Allocator Contract (Allocator role)

FunctionNotes
allocate(strategy, amount)Contract address, uint256 amount (USDC = 6 decimals)