Admin Operations

All functions on this page require the Kasu Admin role (DEFAULT_ADMIN_ROLE).

Access Control

Function
Contract
Description

grantRole(role, account)

KasuController

Grant a system-wide role to an address

revokeRole(role, account)

KasuController

Revoke a system-wide role from an address

System Pause

Function
Contract
Description

pause()

KasuController

Pause all Kasu system activity

unpause()

KasuController

Resume all Kasu system activity

KYC / Allowlist Management

Function
Contract
Description

allowUser(address)

KasuAllowList

Manually allowlist an address (bypasses KYC)

disallowUser(address)

KasuAllowList

Remove an address from the allowlist

blockUser(address)

KasuAllowList

Block an address (overrides allowlist and KYC)

unblockUser(address)

KasuAllowList

Remove an address from the blocklist

Fee Configuration

Function
Contract
Description

setPerformanceFee(fee)

SystemVariables

Set performance fee percentage. Uses FULL_PERCENT (100_00). Current: 10_00 (10%)

setFeeRates(ecosystemRate, protocolRate)

SystemVariables

Set the ecosystem/protocol fee split. Must sum to FULL_PERCENT

Loyalty Configuration

Function
Contract
Description

setLoyaltyThresholds(thresholds)

SystemVariables

Set rKSU ratio thresholds for loyalty levels. Array of ascending values in FULL_PERCENT. Current: [1_00, 5_00] (1%, 5%)

Interest Rate Configuration

Function
Contract
Description

setMaxTrancheInterestRate(rate)

SystemVariables

Set maximum allowed tranche interest rate

setDefaultTrancheInterestChangeEpochDelay(delay)

SystemVariables

Set the default epoch delay before interest rate changes take effect. Current: 4 epochs

updateTrancheInterestRateChangeEpochDelay(pool, delay)

LendingPoolManager

Override epoch delay for a specific lending pool

Junior Tranche Restriction

Function
Contract
Description

setUserCanOnlyDepositToJuniorTrancheWhenHeHasRKSU(enabled)

SystemVariables

When enabled, only users with rKSU can deposit into Junior tranches

KSU Locking Administration

Function
Contract
Description

addLockPeriod(duration, lockMultiplier, bonusMultiplier)

KSULocking

Add a new lock period with its rKSU and bonus multipliers

setKSULockBonus(bonusAddress)

KSULocking

Set the wallet supplying bonus KSU tokens

emergencyWithdraw()

KSULocking

Forcibly unlock all users' KSU positions (safety mechanism)

Last updated