This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setProtection(msg, location) { | |
/** ******************************************* | |
- check if new base is already protected | |
- if timer remaining is within reup time, then | |
- cancel old timers | |
- set new timers | |
**********************************************/ | |
const ensureLocation = new Promise((resolve, reject) => { | |
if (location) { | |
resolve(location); |