Skip to content

Commit 06bd8b4

Browse files
authored
Merge pull request #529 from PolymathNetwork/vrtm-small-fix
add the remove function during re-add of the restriction
2 parents 83f0afa + e0a6087 commit 06bd8b4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contracts/modules/TransferManager/VolumeRestrictionTM.sol

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,9 @@ contract VolumeRestrictionTM is VolumeRestrictionTMStorage, ITransferManager {
268268
"Not Allowed"
269269
);
270270
_checkInputParams(_allowedTokens, _startTime, 1, _endTime, _restrictionType, now);
271+
if (individualDailyRestriction[_holder].endTime != 0) {
272+
_removeIndividualDailyRestriction(_holder);
273+
}
271274
individualDailyRestriction[_holder] = VolumeRestriction(
272275
_allowedTokens,
273276
_startTime,

0 commit comments

Comments
 (0)