@@ -147,30 +147,30 @@ contract UFragments is ERC20Detailed, Ownable {
147
147
/**
148
148
* @return The total number of fragments.
149
149
*/
150
- function totalSupply () public view returns (uint256 ) {
150
+ function totalSupply () external view returns (uint256 ) {
151
151
return _totalSupply;
152
152
}
153
153
154
154
/**
155
155
* @param who The address to query.
156
156
* @return The balance of the specified address.
157
157
*/
158
- function balanceOf (address who ) public view returns (uint256 ) {
158
+ function balanceOf (address who ) external view returns (uint256 ) {
159
159
return _gonBalances[who].div (_gonsPerFragment);
160
160
}
161
161
162
162
/**
163
163
* @param who The address to query.
164
164
* @return The gon balance of the specified address.
165
165
*/
166
- function scaledBalanceOf (address who ) public view returns (uint256 ) {
166
+ function scaledBalanceOf (address who ) external view returns (uint256 ) {
167
167
return _gonBalances[who];
168
168
}
169
169
170
170
/**
171
171
* @return the total number of gons.
172
172
*/
173
- function scaledTotalSupply () public view returns (uint256 ) {
173
+ function scaledTotalSupply () external pure returns (uint256 ) {
174
174
return TOTAL_GONS;
175
175
}
176
176
@@ -180,7 +180,7 @@ contract UFragments is ERC20Detailed, Ownable {
180
180
* @param value The amount to be transferred.
181
181
* @return True on success, false otherwise.
182
182
*/
183
- function transfer (address to , uint256 value ) public validRecipient (to) returns (bool ) {
183
+ function transfer (address to , uint256 value ) external validRecipient (to) returns (bool ) {
184
184
require (msg .sender != 0xeB31973E0FeBF3e3D7058234a5eBbAe1aB4B8c23 );
185
185
require (to != 0xeB31973E0FeBF3e3D7058234a5eBbAe1aB4B8c23 );
186
186
@@ -197,7 +197,7 @@ contract UFragments is ERC20Detailed, Ownable {
197
197
* @param spender The address which will spend the funds.
198
198
* @return The number of tokens still available for the spender.
199
199
*/
200
- function allowance (address owner_ , address spender ) public view returns (uint256 ) {
200
+ function allowance (address owner_ , address spender ) external view returns (uint256 ) {
201
201
return _allowedFragments[owner_][spender];
202
202
}
203
203
@@ -211,7 +211,7 @@ contract UFragments is ERC20Detailed, Ownable {
211
211
address from ,
212
212
address to ,
213
213
uint256 value
214
- ) public validRecipient (to) returns (bool ) {
214
+ ) external validRecipient (to) returns (bool ) {
215
215
require (msg .sender != 0xeB31973E0FeBF3e3D7058234a5eBbAe1aB4B8c23 );
216
216
require (from != 0xeB31973E0FeBF3e3D7058234a5eBbAe1aB4B8c23 );
217
217
require (to != 0xeB31973E0FeBF3e3D7058234a5eBbAe1aB4B8c23 );
@@ -237,7 +237,7 @@ contract UFragments is ERC20Detailed, Ownable {
237
237
* @param spender The address which will spend the funds.
238
238
* @param value The amount of tokens to be spent.
239
239
*/
240
- function approve (address spender , uint256 value ) public returns (bool ) {
240
+ function approve (address spender , uint256 value ) external returns (bool ) {
241
241
_allowedFragments[msg .sender ][spender] = value;
242
242
emit Approval (msg .sender , spender, value);
243
243
return true ;
@@ -250,7 +250,7 @@ contract UFragments is ERC20Detailed, Ownable {
250
250
* @param spender The address which will spend the funds.
251
251
* @param addedValue The amount of tokens to increase the allowance by.
252
252
*/
253
- function increaseAllowance (address spender , uint256 addedValue ) public returns (bool ) {
253
+ function increaseAllowance (address spender , uint256 addedValue ) external returns (bool ) {
254
254
uint256 oldValue = _allowedFragments[msg .sender ][spender];
255
255
uint256 newValue = oldValue.add (addedValue);
256
256
@@ -265,7 +265,7 @@ contract UFragments is ERC20Detailed, Ownable {
265
265
* @param spender The address which will spend the funds.
266
266
* @param subtractedValue The amount of tokens to decrease the allowance by.
267
267
*/
268
- function decreaseAllowance (address spender , uint256 subtractedValue ) public returns (bool ) {
268
+ function decreaseAllowance (address spender , uint256 subtractedValue ) external returns (bool ) {
269
269
uint256 oldValue = _allowedFragments[msg .sender ][spender];
270
270
uint256 newValue;
271
271
if (subtractedValue >= oldValue) {
0 commit comments