-
Notifications
You must be signed in to change notification settings - Fork 322
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
CIP-????: Script may want to refuse to accept wrong assets: Acceptor
scripts
#472
Comments
mgajda
changed the title
Script may want to reject some transactions:
CIP-????: Script may want to reject some transactions: Mar 6, 2023
Acceptor
scriptsAcceptor
scripts
mgajda
changed the title
CIP-????: Script may want to reject some transactions:
CIP-????: Script may want to refuse to accept wrong assets: Mar 6, 2023
Acceptor
scriptsAcceptor
scripts
Alternative would be to forbid transactions without |
At first sight, I like Acceptor idea albeit I think that even transactions with Datum do not protect us. Acceptor is an interesting concept to explore. |
isn't a bit like Contigent Transactions idea, where a transaction (e.g. multi sig) is accepted only if certain conditions are true (whatever is programmed)? |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Now smart contracts rely mostly on minting and redemption of previously setup transactions.
This means that we may send assets to a smart contract, and they may be lost forever.
Ideal situation would be if smart contract could accept or reject such transactions.
That means sending Ada to a smart contract would be a bit more expensive, since it would invoke
"Acceptor" script, but would also be much safer, since user would know that script
author expected to correctly handle the asset.
For example Uniswap trading pair script would only accept tokens from this trading pair.
It would also mean that assets would not be accidentally burned by sending them to the wrong smart contract.
The text was updated successfully, but these errors were encountered: