benilla-re systems structs docs

ComputeAuctionDeposit

function · unassigned · primitive

Address
0x644bc0 · 102 bytes, up to 0x644c25
Signature
uint32_t __fastcall (uint32_t rate, uint32_t value, uint32_t minutes)
Meaning
Returns rate times value in 32 bits over 100, times minutes over 120, for 120, 480 or 1440 minutes, else 0
Confidence
verified, proof one
Finding
ui/auctionlists#deposit
Test
ui::auction_deposit_difftest

Finding: Deposit in ui: auction lists, sorting and deposits

GetAuctionHouseDepositRate() returns the house's deposit percentage (column 2 of its AuctionHouse.dbc row), or 0. CalculateAuctionDeposit(runTime) needs a number (Usage: CalculateAuctionDeposit(runTime)), and returns floor(rate * sellPrice * count / 100) * (runTime / 120) when a house, the sell slot item and its record are known and runTime is 120, 480 or 1440; the division is exact and happens before the multiply. Anything unknown gives 0. The consignment column of the row is never read.

The derivation is in the doc.

Callers 1

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.