Skip to content

Commit 4cf80aa

Browse files
committed
Add changeToken methods on MVM and VestedPayment contracts
1 parent 9f7ab37 commit 4cf80aa

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

contracts/LifMarketValidationMechanism.sol

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ contract LifMarketValidationMechanism is Ownable {
121121
funded = true;
122122
}
123123

124+
/**
125+
@dev Change the LifToken address
126+
*/
127+
function changeToken(address newToken) public onlyOwner {
128+
lifToken = LifToken(newToken);
129+
}
130+
124131
/**
125132
@dev calculates the exponential distribution curve. It determines how much
126133
wei can be distributed back to the foundation every month. It starts with

contracts/VestedPayment.sol

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ contract VestedPayment is Ownable {
6969
token = LifToken(tokenAddress);
7070
}
7171

72+
/**
73+
@dev Change the LifToken address
74+
*/
75+
function changeToken(address newToken) public onlyOwner {
76+
token = LifToken(newToken);
77+
}
78+
7279
/**
7380
@dev Get how many tokens are available to be claimed
7481
*/

0 commit comments

Comments
 (0)