mirror of
https://github.com/status-im/liquid-funding.git
synced 2025-01-27 11:44:50 +00:00
Do not allow transfers to a canceled campaign
This commit is contained in:
parent
bd5c29cf2f
commit
5fd25487b5
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -715,6 +715,8 @@ function donate(uint64 idGiver, uint64 idReceiver) payable {
|
|||||||
Pledge storage n = findPledge(idPledge);
|
Pledge storage n = findPledge(idPledge);
|
||||||
|
|
||||||
require(getPledgeLevel(n) < MAX_INTERCAMPAIGN_LEVEL);
|
require(getPledgeLevel(n) < MAX_INTERCAMPAIGN_LEVEL);
|
||||||
|
require(!isCampaignCanceled(idReceiver));
|
||||||
|
|
||||||
uint64 oldPledge = findOrCreatePledge(
|
uint64 oldPledge = findOrCreatePledge(
|
||||||
n.owner,
|
n.owner,
|
||||||
n.delegationChain,
|
n.delegationChain,
|
||||||
@ -787,6 +789,7 @@ function donate(uint64 idGiver, uint64 idReceiver) payable {
|
|||||||
Pledge storage n = findPledge(idPledge);
|
Pledge storage n = findPledge(idPledge);
|
||||||
|
|
||||||
require(getPledgeLevel(n) < MAX_SUBCAMPAIGN_LEVEL);
|
require(getPledgeLevel(n) < MAX_SUBCAMPAIGN_LEVEL);
|
||||||
|
require(!isCampaignCanceled(idReceiver));
|
||||||
|
|
||||||
uint64 toPledge = findOrCreatePledge(
|
uint64 toPledge = findOrCreatePledge(
|
||||||
n.owner,
|
n.owner,
|
||||||
|
@ -715,6 +715,8 @@ function donate(uint64 idGiver, uint64 idReceiver) payable {
|
|||||||
Pledge storage n = findPledge(idPledge);
|
Pledge storage n = findPledge(idPledge);
|
||||||
|
|
||||||
require(getPledgeLevel(n) < MAX_INTERCAMPAIGN_LEVEL);
|
require(getPledgeLevel(n) < MAX_INTERCAMPAIGN_LEVEL);
|
||||||
|
require(!isCampaignCanceled(idReceiver));
|
||||||
|
|
||||||
uint64 oldPledge = findOrCreatePledge(
|
uint64 oldPledge = findOrCreatePledge(
|
||||||
n.owner,
|
n.owner,
|
||||||
n.delegationChain,
|
n.delegationChain,
|
||||||
@ -787,6 +789,7 @@ function donate(uint64 idGiver, uint64 idReceiver) payable {
|
|||||||
Pledge storage n = findPledge(idPledge);
|
Pledge storage n = findPledge(idPledge);
|
||||||
|
|
||||||
require(getPledgeLevel(n) < MAX_SUBCAMPAIGN_LEVEL);
|
require(getPledgeLevel(n) < MAX_SUBCAMPAIGN_LEVEL);
|
||||||
|
require(!isCampaignCanceled(idReceiver));
|
||||||
|
|
||||||
uint64 toPledge = findOrCreatePledge(
|
uint64 toPledge = findOrCreatePledge(
|
||||||
n.owner,
|
n.owner,
|
||||||
|
@ -300,6 +300,8 @@ function donate(uint64 idGiver, uint64 idReceiver) payable {
|
|||||||
Pledge storage n = findPledge(idPledge);
|
Pledge storage n = findPledge(idPledge);
|
||||||
|
|
||||||
require(getPledgeLevel(n) < MAX_INTERCAMPAIGN_LEVEL);
|
require(getPledgeLevel(n) < MAX_INTERCAMPAIGN_LEVEL);
|
||||||
|
require(!isCampaignCanceled(idReceiver));
|
||||||
|
|
||||||
uint64 oldPledge = findOrCreatePledge(
|
uint64 oldPledge = findOrCreatePledge(
|
||||||
n.owner,
|
n.owner,
|
||||||
n.delegationChain,
|
n.delegationChain,
|
||||||
@ -372,6 +374,7 @@ function donate(uint64 idGiver, uint64 idReceiver) payable {
|
|||||||
Pledge storage n = findPledge(idPledge);
|
Pledge storage n = findPledge(idPledge);
|
||||||
|
|
||||||
require(getPledgeLevel(n) < MAX_SUBCAMPAIGN_LEVEL);
|
require(getPledgeLevel(n) < MAX_SUBCAMPAIGN_LEVEL);
|
||||||
|
require(!isCampaignCanceled(idReceiver));
|
||||||
|
|
||||||
uint64 toPledge = findOrCreatePledge(
|
uint64 toPledge = findOrCreatePledge(
|
||||||
n.owner,
|
n.owner,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user