Example #1
0
 public override Empty SetMethodCallingThreshold(SetMethodCallingThresholdInput input)
 {
     AssertPerformedByContractOwner();
     State.MethodCallingThresholds[input.Method] = new MethodCallingThreshold
     {
         SymbolToAmount = { input.SymbolToAmount }
     };
     return(new Empty());
 }
Example #2
0
 public override Empty SetMethodCallingThreshold(SetMethodCallingThresholdInput input)
 {
     Assert(State.Admin.Value == Context.Sender, "No permission.");
     State.MethodCallingThresholds[input.Method] = new MethodCallingThreshold
     {
         SymbolToAmount = { input.SymbolToAmount }
     };
     return(new Empty());
 }