#What are these entry rent cost coefficients?
11 messages · Page 1 of 1 (latest)
Here's the PR where that originated, for some added context: https://github.com/stellar/soroban-docs/pull/569
@scarlet rapids might be able to explain it best, we went back and forth a bit (some discussion in the resolved comments on that PR). I'm still not sure I completely understand it, but the coefficient serves as a divisor to calculate the fee for the entry to stay on the ledger after it's been written. Or something like that... 🤔
The table just doesn't make any sense to me. I want it to say how much will it cost (in stroops) to store a temp entry and a persistent entry.
Maybe you could put a little * pointing to the explainer and a "for instance" below the table?
If you were to store a temp entry for x days it would cost x stroops and the same for persistent
Agreed. That would be a very worthwhile addition!
If I'm writing a temp ledger entry (say XLM:USDC price, for example), we can calculate the cost pretty accurately, right? How variable is it based on the size of the data I'm storing (up to the 1KB threshold)? Like, would the rent fee be the same to store 9MB and to store 999MB? I suppose the same question would apply to persistent entries, right?
I think I'm also maybe confused by the wording "Write 1KB to empty ledger"
That seems to imply if I'm adding data to an existing ledger, it's calculated differently? Is that "ledger" in the sense of "a collection of Stellar transactions," or maybe more like "a collection of soroban ledger entries"? And, if it's a non-empty ledger I'm writing to, is it populated with data I've already stored, other ledger entries from other contracts, etc.?
The table just doesn't make any sense to me. I want it to say how much will it cost (in stroops) to store a temp entry and a persistent entry.
hmm, I guess we could add the rent costs in a similar fashion to the write costs..