-
Notifications
You must be signed in to change notification settings - Fork 6
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
Rainbow token contract update #460
Open
chuck-h
wants to merge
18
commits into
JoinSEEDS:master
Choose a base branch
from
chuck-h:feature/rainbows
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 8 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
8d0421e
rainbows: test currency supply tracking with MC neg balances
chuck-h 00e522a
Merge branch 'JoinSEEDS:master' into feature/rainbows
chuck-h 77afda0
rainbows(mutual credit): improve max supply check
chuck-h a281394
rainbows (mutual credit): support un-opened account able to send tokens
chuck-h 2ca795f
rainbows: link forgotton deletestake action
chuck-h 9ec5ec5
rainbows: add unit test for deletestake
chuck-h 76622c2
rainbows: re-enable some needed contract permissions
chuck-h e2bd7ae
rainbows: support token 'burn' without releasing backing (stake)
chuck-h bc938c0
Merge branch 'master' of https://github.com/JoinSEEDS/seeds-smart-con…
chuck-h d3e2c83
Merge branch 'JoinSEEDS-master' into feature/rainbows
chuck-h 3805560
Rainbow: rename "stake" to "backing" step 1 (no change to wasm)
chuck-h 0df28f6
Rainbow: rename "stake" to "backing" step 2 (update public interface)
chuck-h 7cd98bb
Rainbows: retire "burn" flag -> "do_redeem" (invert logic)
chuck-h 90da96c
Merge branch 'JoinSEEDS:master' into feature/rainbows
chuck-h 057d7b9
rainbows: establish fee requirement to create token (WIP)
chuck-h 7ae5671
rainbows: remove almost all issuer RAM requirements (contract pays)
chuck-h ae167cf
rainbows: improve insufficient fee error message
chuck-h b58c328
Merge pull request #12 from JoinSEEDS/master
chuck-h File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... I don't understand what burn parameter does. You'd think it burns token if this is true. But.... that's not what it does?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
retire
action on an ordinary token would just burn it, basically destroying value. But with "staked" or "backed" tokens, aretire
action releases the staked value to the token holder and is more of a conversion of value. By setting the burn flag, a staked token is retired (value destroyed) but the staked value remains in escrow and is not released. Burn flag is a NOP on a plain token with no backing.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can call it force_burn?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or... do_not_redeem?
Hmm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
redeem_for_backing == true -> (burn == false)
? maybe describe the inverse, the positive ... so if the flag is true, the token holder receives the backing token for their retired tokens
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"burn" flag is now "do_redeem" with inverted logic.