rusk icon indicating copy to clipboard operation
rusk copied to clipboard

Implement Economic Protocol Scenario 3 Deposit-Free

Open miloszm opened this issue 10 months ago • 2 comments

Summary

In addition to issue #1603 implementing contract-pays scenario, but still requiring user's deposit, we also need an implementation which does not require a deposit.

Possible solution design or implementation

We should make it possible to only call the "execute" part of the "spend_and_execute" call into transfer contract.

Additional context

Both deposit and deposit-free versions have their business use cases and should be allowed, hence we should have relevant tests for both these variants.

miloszm avatar Apr 15 '24 09:04 miloszm

We decided to make this the main and only feature of the economic protocol.

As such we're broadening the scope of this issue to also remove of the parts of the protocol relating to the contract "charging" an additional fee, a.k.a. scenario 3 - contract applies fee. This will mean the elimination of part of the code introduced by https://github.com/dusk-network/rusk/pull/1735, and adjusting the rest of the codebase accordingly.

This change should be accompanied by some changes in piecrust reflecting the narrowed functionality, these changes being described in https://github.com/dusk-network/piecrust/issues/365.

ureeves avatar Jun 10 '24 12:06 ureeves

Blocked by #1657

autholykos avatar Jun 17 '24 08:06 autholykos