zeekayandHanzo Dev 87a4f1dff8 fix(market): quote the royalty from basis points, not a float
ERC-2981 quotes an amount against a sale price rather than publishing a
rate, so the rate is read by asking for one whole token and dividing.
Doing that in floating point printed 250 basis points as
2.4999999999999996%. rateLabel scales by 10,000 in bigint first, so the
integer the contract stores comes back out intact.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-29 18:18:59 -07:00
2022-11-29 18:04:37 -05:00
S
Description
Web3 marketplace for real-world assets (RWAs)
20 MiB
Languages
TypeScript 96.2%
CSS 2.5%
JavaScript 1.2%