HSP Sandbox Mode— Settlement flows are simulated. On-chain payroll is fully functional.
← Docs
Fiat-denominated pay

Salary Index

SalaryIndex.sol

Salary Index lets employers quote salaries in INR, USD, EUR, or any fiat with a Chainlink price feed. At executeCycle time, the oracle resolves the fiat amount to tokens — perfect for emerging-market teams paid in stablecoins.

Flow

// Employer stores INR-denominated salary
setFiatSalary(payrollId, recipient, "INR", 85_000 * 1e8)

// At execute time, SalaryIndex converts via ChainLink
uint256 usdt = tokenAmountFor("INR", 85_000 * 1e8, 6 /* decimals */);
// → ~1000 USDT at 85 INR/USD

Why it matters

Indian contributors paid in USDT want their take-home in rupees to be stable month-to-month. Salary indexing absorbs FX volatility so the employee sees predictable pay in local terms.