Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't generate Mana from storage deposit #469

Merged
merged 6 commits into from
Aug 2, 2023

Conversation

cyberphysic4l
Copy link
Contributor

This PR changes the potential Mana for outputs to only include tokens in excess of the minimum storage deposit, i.e., the storage deposit does not generate Mana, which makes this serve a rent payment (in Mana) for storing the output.

This PR also includes some renaming around deposits and rent. Deposit not strictly refers to the minimum storage deposit required for the object, while base token amount or amount refers to the total amount of base tokens on the object. Rent is payed in Mana, so the storage deposit itself is not "rent", but rather a deposit, and rent is the Mana that the base tokens of the storage deposit would otherwise generate if it were not a storage deposit.

Copy link
Contributor

@PhilippGackstatter PhilippGackstatter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

output.go Outdated Show resolved Hide resolved
output.go Outdated Show resolved Hide resolved
output.go Show resolved Hide resolved
transaction_essence.go Outdated Show resolved Hide resolved
rent.go Outdated Show resolved Hide resolved
vm/stardust/vm_stardust.go Outdated Show resolved Hide resolved
vm/vm.go Outdated Show resolved Hide resolved
@muXxer muXxer merged commit 5a196b9 into serix-iota-core Aug 2, 2023
4 checks passed
@muXxer muXxer deleted the feat/storage-deposit-mana branch August 2, 2023 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants