Technical architecture and implementation details of the BTC Summer points system
lend
type deposits (excludes borrowed
amounts)Data Collection
Process Ethereum Deposits
Points Calculation
Update User Reward Balances
N
users, each update requires N
writes to the contract.
Gas Cost Estimates:
limited_end
and current
, and calculates how many points belong to each phasebind
command, the system links the ETH address to a Neutron address, zeros out the ETH balance, and creates a new Neutron balancenon_forfeitable_balance
– rewards from finished periodsforfeitable_balance
– points from the current, open periodoracle-lst
contract for Bitcoin derivative pricingoracle-lst
to query underlying xBTC asset pricesupervault
contract to query share value via virtual balancerewards / cap
ratio. Smaller caps result in higher minimum APRs when fully utilized.
execute
method that creates vesting schedules based on its state. Since vesting is in NTRN, the contract must know the USDC → NTRN rate. This requires: