Technical Architecture
LBP Platform Architecture
Factory Contract ──────► LBP Pool Instances ──────► Treasury
│ │ │
▼ ▼ ▼
Pool Deployment Trading Execution Fee ManagementCore Components
Weight Calculation Implementation
function _currentAssetWeight() internal view returns (uint256) {
uint256 _saleStart = saleStart();
uint256 _saleEnd = saleEnd();
uint256 _now = block.timestamp;
if (_now <= _saleStart) return weightStart();
if (_now >= _saleEnd) return weightEnd();
return weightStart() +
((_now - _saleStart) * (weightEnd() - weightStart())) /
(_saleEnd - _saleStart);
}Advanced Features
Integration Guide
Trading Functions
Price Estimation Functions
Reading Pool State
Events
Last updated