Transaction
B338D8D7868BC3…C500360164C0
Block 317,454 · index 0 · indexed
Summary
- Hash
- B338D8D7868BC3C0C9215EC46AB527B858DB47E2AE5299873642C500360164C0
- Block
- 317,454
- Size
- 1001 bytes
- Gas used
- 3,180,149 / 200,000,000
- Fee
- 1000000 ugnot
- Status
- success
Messages
- Attached funds
- 90000000 ugnot
Arguments · 7
- #1fee
- #2fee.gno
- #3package fee const Denom int64 = 10000 // ProtocolFee is (price * bps) / Denom without overflowing int64 on price*bps. func ProtocolFee(price, bps int64) int64 { if price < 0 { panic("fee: negative price") } if bps < 0 || bps > Denom { panic("fee: bps") } q := price / Denom r := price % Denom return q*bps + r*bps/Denom } // SellerProceeds is the ugnot the seller receives after the protocol fee. func SellerProceeds(price, bps int64) int64 { return price - ProtocolFee(price, bps) }
- #4gnomod.toml
- #5module = "gno.land/p/g1n4pl5uc4yt5r96m9w6fmdznx3x0jyg8l6arhmt/bazaar/fee/v1" gno = "0.9"
- #6/gno.MemPackageType
- #7 MPUserAll
Result log
msg:0,success:true,log:,events:[]