From 8eb3a6930d319b7a929605c665a311390e9f72c5 Mon Sep 17 00:00:00 2001 From: alf40k Date: Sun, 22 Oct 2017 20:50:48 -0400 Subject: [PATCH] comment transferOwnershipToGiver --- contracts/LiquidPledging.sol | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/contracts/LiquidPledging.sol b/contracts/LiquidPledging.sol index d4afea2..e22b32f 100644 --- a/contracts/LiquidPledging.sol +++ b/contracts/LiquidPledging.sol @@ -422,18 +422,26 @@ contract LiquidPledging is LiquidPledgingBase { doTransfer(idPledge, toPledge, amount); } + + /// @notice `transferOwnershipToGiver` allows for the transfer of + /// value back to the Giver, value is placed in a pledged state + /// without being attached to a project, delegation chain, or timeline. + /// @param idPledge Id of the pledge to be transfered. + /// @param amount Quantity of value that's being transfered + /// @param idReceiver The new owner of the pledge function transferOwnershipToGiver( uint64 idPledge, uint amount, uint64 idReceiver ) internal { uint64 toPledge = findOrCreatePledge( - idReceiver, - new uint64[](0), - 0, - 0, - 0, - PaymentState.Pledged); + idReceiver, + new uint64[](0), + 0, + 0, + 0, + PaymentState.Pledged + ); doTransfer(idPledge, toPledge, amount); }