@@ -41,6 +41,7 @@ contract UFragments is ERC20Detailed, Ownable {
41
41
event LogRebase (uint256 indexed epoch , uint256 totalSupply );
42
42
event LogRebasePaused (bool paused );
43
43
event LogTokenPaused (bool paused );
44
+ event LogMonetaryPolicyUpdated (address monetaryPolicy );
44
45
45
46
// Used for authentication
46
47
address public monetaryPolicy;
@@ -97,6 +98,7 @@ contract UFragments is ERC20Detailed, Ownable {
97
98
onlyOwner
98
99
{
99
100
monetaryPolicy = monetaryPolicy_;
101
+ emit LogMonetaryPolicyUpdated (monetaryPolicy_);
100
102
}
101
103
102
104
/**
@@ -166,21 +168,21 @@ contract UFragments is ERC20Detailed, Ownable {
166
168
return _totalSupply;
167
169
}
168
170
169
- function initialize (address owner )
171
+ function initialize (address owner_ )
170
172
public
171
173
initializer
172
174
{
173
175
ERC20Detailed .initialize ("UFragments " , "AMPL " , uint8 (DECIMALS));
174
- Ownable.initialize (owner );
176
+ Ownable.initialize (owner_ );
175
177
176
178
rebasePaused = false ;
177
179
tokenPaused = false ;
178
180
179
181
_totalSupply = INITIAL_FRAGMENTS_SUPPLY;
180
- _gonBalances[owner ] = TOTAL_GONS;
182
+ _gonBalances[owner_ ] = TOTAL_GONS;
181
183
_gonsPerFragment = TOTAL_GONS.div (_totalSupply);
182
184
183
- emit Transfer (address (0x0 ), owner , _totalSupply);
185
+ emit Transfer (address (0x0 ), owner_ , _totalSupply);
184
186
}
185
187
186
188
/**
@@ -227,16 +229,16 @@ contract UFragments is ERC20Detailed, Ownable {
227
229
228
230
/**
229
231
* @dev Function to check the amount of tokens that an owner has allowed to a spender.
230
- * @param owner The address which owns the funds.
232
+ * @param owner_ The address which owns the funds.
231
233
* @param spender The address which will spend the funds.
232
234
* @return The number of tokens still available for the spender.
233
235
*/
234
- function allowance (address owner , address spender )
236
+ function allowance (address owner_ , address spender )
235
237
public
236
238
view
237
239
returns (uint256 )
238
240
{
239
- return _allowedFragments[owner ][spender];
241
+ return _allowedFragments[owner_ ][spender];
240
242
}
241
243
242
244
/**
0 commit comments